opentelemetry-java-instrumentation icon indicating copy to clipboard operation
opentelemetry-java-instrumentation copied to clipboard

Remove declarative config bridge from agent

Open zeitlinger opened this issue 1 month ago • 4 comments

zeitlinger avatar Jan 06 '26 14:01 zeitlinger

I think we need to keep this bridge until we remove the deprecated methods that are still using ConfigProperties

trask avatar Jan 13 '26 17:01 trask

I think we need to keep this bridge until we remove the deprecated methods that are still using ConfigProperties

No those are not using this bridge - use explicit fallback instead.

In fact, only contrib extensions use this bridge at this point.

zeitlinger avatar Jan 13 '26 17:01 zeitlinger

what if someone has an extension with

  • IgnoredTypesConfigurer
  • InstrumentationModule

using one of those deprecated ConfigProperties methods?

trask avatar Jan 13 '26 19:01 trask

what if someone has an extension with

  • IgnoredTypesConfigurer
  • InstrumentationModule

using one of those deprecated ConfigProperties methods?

That's a good point. We have to decide if we want to support ConfigProperties in those extensions together with declarative config, which is still experimental. I would say we sholudn't try to do that, it only creates some things that still don't work - like the new "distribution" node support added in https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/15822.

zeitlinger avatar Jan 14 '26 09:01 zeitlinger

I would say we shouldn't try to do that, it only creates some things that still don't work

good point, extensions (e.g. adding span processors) generally need to do work anyways to support declarative configuration

trask avatar Jan 22 '26 16:01 trask