Support for @WithSpan ?
#138
wimdeblauwe-volvo
started this conversation in
Ideas
Replies: 1 comment
-
|
Thanks so much for trying out Arconia OpenTelemetry and for sharing feedback about your experience. Much appreciated! Currently, Arconia supports the different Micrometer annotations for metrics and traces which cover more use cases (e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Testing with Arconia OpenTelemetry 0.18.2, it seems that
@Observed(from Micrometer) works out-of-the-box. However,@WithSpan(from OpenTelemetry) does not work.To make it work, I had to do the following changes:
@WithSpanannotation:And copied the 6 classes from https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/annotations into my own project.
I also had to comment out
ConditionalOnEnabledInstrumentationonInstrumentationAnnotationsAutoConfiguration.After that, the
@WithSpanannotation worked, I had an extra trace showing up in Grafana.I wonder if this is the intention, or if the framework could do more to also support
@WithSpan?Beta Was this translation helpful? Give feedback.
All reactions