Skip to content

Upgrade OTel contrib to 1.52.0 and replace AgentInstrumentationConfig with ConfigPropertiesUtil#4632

Draft
Copilot wants to merge 7 commits intomainfrom
copilot/upgrade-otel-versions
Draft

Upgrade OTel contrib to 1.52.0 and replace AgentInstrumentationConfig with ConfigPropertiesUtil#4632
Copilot wants to merge 7 commits intomainfrom
copilot/upgrade-otel-versions

Conversation

Copy link
Contributor

Copilot AI commented Mar 4, 2026

Addresses the upstream removal of AgentInstrumentationConfig (upstream PRs #15651, #15752) and bumps OTel contrib to 1.52.0.

Version bump

  • otelContribVersion: 1.48.01.52.0 (dependencyManagement/build.gradle.kts)

AgentInstrumentationConfig removal

The upstream-recommended replacement is ConfigPropertiesUtil from io.opentelemetry.instrumentation.api.internal, which reads from system properties with env-var fallback — matching the original behaviour.

Before:

AgentInstrumentationConfig.get().getString("applicationinsights.internal.methods.include")

After:

ConfigPropertiesUtil.getString("applicationinsights.internal.methods.include")

Affected files:

  • MethodInstrumentationModule.java — reads trace methods config at transform time
  • AzureMonitorRegistryConfig.java — reads micrometer step/namespace config at init time

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits March 4, 2026 02:11
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
…cation

Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade OTel versions and fix build failures Upgrade OpenTelemetry to 1.58.0 / 2.24.0 / contrib 1.52.0 Mar 4, 2026
Copilot AI and others added 2 commits March 4, 2026 10:07
…umentationConfig

Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
…tionConfig

Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot AI changed the title Upgrade OpenTelemetry to 1.58.0 / 2.24.0 / contrib 1.52.0 Upgrade OpenTelemetry to SDK 1.58.0 / instrumentation 2.24.0 / contrib 1.52.0 Mar 4, 2026
… with ConfigPropertiesUtil

Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot AI changed the title Upgrade OpenTelemetry to SDK 1.58.0 / instrumentation 2.24.0 / contrib 1.52.0 Upgrade OTel contrib to 1.52.0 and replace AgentInstrumentationConfig with ConfigPropertiesUtil Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants