Skip to content

InstrumenterCustomizerProvider SPI not usable in agent extensions #15513

@laurit

Description

@laurit

Discovered in #14825 (reply in thread)
InstrumenterCustomizerProvider and HttpClientUrlTemplateCustomizer are shaded and added to boot loader. When extension classes are loaded we remap class references so that references to classes that are shaded under a different name get correct, but we don't rename the SPI files. Currently extensions would need to use io.opentelemetry.javaagent.shaded.instrumentation.api.incubator.semconv.http.HttpClientUrlTemplateCustomizer instead of io.opentelemetry.instrumentation.api.incubator.semconv.http.internal.HttpClientUrlTemplateCustomizer as the SPI file name for the SPI to get loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions