Skip to content

Use spring.application.name as fallback for service.name in OtlpConfig #37285

@mhalbritter

Description

@mhalbritter

OtlpConfig automatically registers service.name from the env variable OTEL_SERVICE_NAME. If this env variable is not set, the SDK falls back to unknown_service.

In Spring Boot, we have spring.application.name, which we could fall back on.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions