-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracing multiple applications in application servers #1109
Comments
|
Related to the topic (but not that particular issue) is open-telemetry/opentelemetry-specification#335 "Consider adding a resource (semantic convention) to distinguish HTTP applications" |
It seems |
The Tracer is not meant to represent a service. It just represents the reporting artifact name and version. I think there is currently no way to do this properly with a single class loader, but you can look at open-telemetry/oteps#78 and the aforementioned open-telemetry/opentelemetry-specification#335 to voice your opinion. IMHO the service should be taken from the resource by the JaegerGrpcSpanExporter (we already have |
Related #350 |
|
You are right, I misread the posted sample code. addSpanProcessor is where it should be 👍 |
In an application server that supports multiple applications, we are using OpenTracing API in JAX-RS filters to automatic instrument applications. Each application has its own instance of
Tracer
. Implementations such asBraveTracer
orJaegerTracer
can be instantiated and configured with their own service names. Multiple tracer implementations can export spans to a single OpenTracing server.In OpenTelemetry, created 2 instances of
Tracer
usingCreated a
SpanProcessor
andSpanExporter
usingIn this case, spans from
tracer1
andtracer2
got reported as "app1" in the backend because of the serviceName set in theSpanExporter
. Creating another instance ofSpanProcessor
for "app2" to the same backend will result of duplication of span IDs in the backend.The text was updated successfully, but these errors were encountered: