Customizing Span Names for QuartzTelemetry
when running from javaagent
#11915
Unanswered
dvag-gloeckner-daniel
asked this question in
Q&A
Replies: 1 comment 2 replies
-
hi @dvag-gloeckner-daniel, it's a bit tricky to provide a custom span name extractor to the javaagent would it work for you to use the quartz library instrumentation where you can provide a custom span name extractor, and suppressing the javaagent quartz instrumentation? (https://opentelemetry.io/docs/zero-code/java/agent/disable/#suppressing-specific-agent-instrumentation) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
the default QuartzSpanNameExtractor uses the Quartz job's group and job key to generate the span name. This might be quite OK for cron jobs, however, for jobs started ad-hoc this produces verbose span names which cannot be used for grouping, e.g. in metrics.
I could imagine a few ways to improve this:
javaagent
's configuration so you can implement any naming strategyjavaagent
's configuration which uses the job's class name as a span namePlease let me know if there's any interest in either of the 2 options being implemented and I can work on it.
Beta Was this translation helpful? Give feedback.
All reactions