OTEL_SERVICE_NAME

The environment variable that sets the service.name resource attribute.

In more detail

It takes precedence over service.name inside OTEL_RESOURCE_ATTRIBUTES. With neither set, the Python SDK reports unknown_service:python.

Related terms

Taught in

References

Certification courses