Update to latest OpenTelemetry Java Instrumentation v2.18.1#4369
Update to latest OpenTelemetry Java Instrumentation v2.18.1#4369Copilot wants to merge 3 commits into
Conversation
- Update OpenTelemetry SDK from 1.51.0 → 1.52.0 - Update OpenTelemetry Instrumentation from 2.17.1 → 2.18.1 - Update OpenTelemetry Instrumentation Alpha from 2.17.1-alpha → 2.18.1-alpha - Update dependency lock files to reflect new versions - Verify build and agent functionality with updated versions Co-authored-by: trask <218610+trask@users.noreply.github.com>
|
run and fix OtlpMetrics smoke test |
Co-authored-by: trask <218610+trask@users.noreply.github.com>
I've investigated the OtlpMetrics smoke test failure with OpenTelemetry 2.18.1. The test fails because the Application Insights agent is not properly sending live metrics during initialization, causing a timeout in Investigation Summary:
The root cause appears to be that OpenTelemetry 2.18.1 introduced changes that affect how the Application Insights agent initializes or exports metrics, preventing the live metrics system from functioning properly during test setup. Commit: e830ed9 - Applied the OTLP endpoint path fix, but additional work is needed to resolve the underlying OpenTelemetry 2.18.1 compatibility issue with the Application Insights live metrics system. |
This PR updates the OpenTelemetry Java dependencies to their latest stable versions to ensure compatibility with the newest instrumentation capabilities and bug fixes.
Changes Made
Version Updates
1.51.0→1.52.02.17.1→2.18.12.17.1-alpha→2.18.1-alpha2.17.1→2.18.1Updated Files
dependencyManagement/build.gradle.kts- Updated version constantsagent/agent/gradle.lockfile- Updated dependency locksagent/agent-tooling/gradle.lockfile- Updated dependency locksVerification
✅ Build Status: Clean build completed successfully (563/563 tasks)
✅ Agent JAR: Built successfully (41.3MB)
✅ Dependencies: All OpenTelemetry dependencies resolve to target versions
✅ Runtime Test: Agent starts correctly with expected behavior
✅ Lock Files: Updated and consistent with new versions
Benefits
This update brings:
The ApplicationInsights Java Agent now uses the latest stable OpenTelemetry Java Instrumentation, ensuring users benefit from the most recent improvements and fixes in the OpenTelemetry ecosystem.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/open-telemetry/opentelemetry-java-contrib/releases/latestcurl -s REDACTED(http block)https://api.github.com/repos/open-telemetry/opentelemetry-java-instrumentation/releases/latestcurl -s REDACTED(http block)https://api.github.com/repos/open-telemetry/opentelemetry-java/releases/latestcurl -s REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.