You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team,
we're fully migrating our codebase from opentracing to opentelemetry and decided to use open telemetry java agent. This agent should be a pretty standard and convenient way how to handle tracing because we want to get rid of some third-party dependencies related to opentracing such as opentracing-contrib/java-kafka-client and we're looking for a replacement.
I created two very basic microservices based on Helidon, where the first one (helidon-mp1) calls the second one (helidon-mp2), to see whether the agent works.
The agent seems to be working, but traces look different from traces provided by Helidon without the agent.
I have attached this project to this issue. The project contains README.md where can be found steps to reproduce.
The main difference is that traces with java agent have a different hierarchy of spans, see these examples:
Span security:atn should be a child of security as you can see on the first image (without agent) but with agent, the spans are on the same level.
Expected (without java agent):
Actual (with java agent):
When microservice (helidon-mp1) creates custom span (custom-mp1-span-1) which creates another nested span (custom-mp1-span-2) the hierarchy seems broken similarly as well.
Note that I asked Samuel to file an issue on this - minimally we may need a documentation issue around this, but it may be more than that since the parenting of the span seems off in the above example.
Environment Details
Problem Description
Hi team,
we're fully migrating our codebase from opentracing to opentelemetry and decided to use open telemetry java agent. This agent should be a pretty standard and convenient way how to handle tracing because we want to get rid of some third-party dependencies related to opentracing such as opentracing-contrib/java-kafka-client and we're looking for a replacement.
I created two very basic microservices based on Helidon, where the first one (
helidon-mp1
) calls the second one (helidon-mp2
), to see whether the agent works.The agent seems to be working, but traces look different from traces provided by Helidon without the agent.
I have attached this project to this issue. The project contains README.md where can be found steps to reproduce.
The main difference is that traces with java agent have a different hierarchy of spans, see these examples:
security:atn
should be a child ofsecurity
as you can see on the first image (without agent) but with agent, the spans are on the same level.Expected (without java agent):
Actual (with java agent):
helidon-mp1
) creates custom span (custom-mp1-span-1
) which creates another nested span (custom-mp1-span-2
) the hierarchy seems broken similarly as well.Expected (without java agent):
Actual (with java agent):
Additional version info:
1.22.1
1.41
Steps to reproduce
Attached zip file with REAMDE
The text was updated successfully, but these errors were encountered: