Skip to content
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

Infer service name and set it at startup #321

Open
jackshirazi opened this issue Jul 9, 2024 · 0 comments
Open

Infer service name and set it at startup #321

jackshirazi opened this issue Jul 9, 2024 · 0 comments

Comments

@jackshirazi
Copy link
Contributor

Is your feature request related to a problem?

If service name is not explicitly set (using the two options) then there is a generic default unknown_service. This is not useful for auto-instrumentation

Describe the solution you'd like

The service name should be inferred as best as possible, if some property is set to true (eg OTEL_ELASTIC_AUTO_SERVICE_NAME=true).

Describe alternatives you've considered

Suggestions welcome

Additional context

While in most cases you can ask the user to set the service name explicitly - which is best practice - in the case of zero-code configuration this would add additional per deployment configuration which is not the optimal experience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant