Skip to content

Provide more control over the OTel SpanProcessors #35560

Closed
@mmeller-wikia

Description

@mmeller-wikia

SpringBootVersion: 3.0.6

I was hoping to configure MetricExporter in default SpanProcessor provided in OpenTelemetryAutoConfiguration
OpenTelemetry code: https://github.com/open-telemetry/opentelemetry-java/blob/0bad3c982ad05f54461e241f8a402536c6f9d4b9/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpanProcessor.java#L187-L219

Current workaround:
Create @Primary SpanProcessor bean and redeclare SdkTracerProvider (using custom SpanProcessor bean). One downside is that 2 SpanProcessor beans are created with dandling default one.

If possible I would like to have a simple way to overwrite SpanProcessor bean

In PR discussion: #35558

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions