I've configured a custom operation name generator and tried various fields to pass a FQCN to:
kamon.instrumentation.play.http.server.tracing.operations.name-generator = "my.package.NameGenerator",
kamon.instrumentation.play.http.client.tracing.operations.name-generator = "my.package.NameGenerator",
kamon.instrumentation.http-server.default.tracing.operations.name-generator = "my.package.NameGenerator"
Via logging, I can confirm that the custom name generator is being called correctly, and returns the expected name. However, the final span name is still the default one, and not my custom name.
/**
* This final bit ensures that we will apply an operation name right before filters get to execute.
*/
onType("play.api.http.DefaultHttpRequestHandler")
.advise(method("filterHandler").and(takesArguments(2)), GenerateOperationNameOnFilterHandler)
If I'm not missing anything, it's not possible to configure custom operation names with kamon-play. Would be great to get an opinion on this.
Hi,
I've configured a custom operation name generator and tried various fields to pass a FQCN to:
kamon.instrumentation.play.http.server.tracing.operations.name-generator = "my.package.NameGenerator"
,kamon.instrumentation.play.http.client.tracing.operations.name-generator = "my.package.NameGenerator"
,kamon.instrumentation.http-server.default.tracing.operations.name-generator = "my.package.NameGenerator"
Via logging, I can confirm that the custom name generator is being called correctly, and returns the expected name. However, the final span name is still the default one, and not my custom name.
I believe it's because of this functionality in
PlayServerInstrumementation
, which is overwriting all span names by default:If I'm not missing anything, it's not possible to configure custom operation names with kamon-play. Would be great to get an opinion on this.
Thanks!
Kamon version: 2.1.4 Play version: 2.6