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

OTEL_SERVICE_NAME is not supported by default #24

Open
erichulburd opened this issue Jan 17, 2025 · 0 comments
Open

OTEL_SERVICE_NAME is not supported by default #24

erichulburd opened this issue Jan 17, 2025 · 0 comments

Comments

@erichulburd
Copy link
Collaborator

opentelemetry-rust support OTEL_SERVICE_NAME when the resource is None; it then uses an environment detector: https://github.com/open-telemetry/opentelemetry-rust/pull/571/files

The issue here is that we are explicitly setting resource

.with_resource(self.resource.clone()),
and PyResource defaults to an empty map, rather than None:

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

No branches or pull requests

1 participant