-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Component(s)
No response
Is your feature request related to a problem? Please describe.
When I manually add the javaagent to my services, its convenient to use OTEL_SERVICE_NAME (or some equivalent mechanism) to set service.name.
When I use the opentelemetry injector to install the java agent, there are bits of metadata which are natural candidates for service.name.
With the injector, its changing the processes to set OTEL_SERVICE_NAME is inconvenient to the point of undermining the whole point of the project. And so we need better tooling around this. Some combination of:
- Better autodetection mechanisms built into the instrumentations (e.g. like the javaagent's JarServiceNameResourceExtractor which attempts to set the service name from the jar name)
- Better configuration from the injector. Perhaps a syntax to be able to extract and set
OTEL_SERVICE_NAMEfrom the command / executable.
Without this, we're going to see a lot of service.name: "unknown_service:<language>".
Describe the solution you'd like
See above
Describe alternatives you've considered
Additional context
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Metadata
Metadata
Assignees
Labels
No labels