Skip to content

Fix spring-boot-autoconfigure configuration and rename properties #2481

@mateuszrzeszutek

Description

@mateuszrzeszutek

Current spring-boot-autoconfigure configuration naming scheme is very different from what we use in SDK/javaagent: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/spring/spring-boot-autoconfigure/README.md#configuration-properties

Everything starts with opentelemetry.trace.*, some properties (like opentelemetry.trace.exporters.jaeger.servicename) do not exist anymore, there's even no way to configure the Resource.

We should use the same property names that we use in SDK or javaagent, e.g.:

  • otel.traces.* for tracer config;
  • otel.instrumentation.<name>.enabled to enable manual instrumentations (@WithSpan advice, HTTP clients, etc);
  • And add otel.resource.attributes support so that service.name is properly set.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions