Why the OpenTelemetry Java agent upgrade to 2.x needs a plan before the version bump
Your services currently run the 1.x OpenTelemetry Java agent, and moving to 2.x is not a jar swap. The 2.x release changes the default OTLP protocol to http/protobuf, and the release notes list other breaking changes that may alter exporter behavior, span or metric output, or configuration keys. Treat the upgrade as a coordinated change to three things at once: the agent version and its configuration in each service, the endpoints and ports your Collectors expose, and the dashboards and alerts that read the data. If the agent starts sending over a different protocol to a Collector listening on the old port, telemetry can stop arriving with no error in the application itself. Before the version bump, ask the team to list every service, its agent configuration source (environment variables, system properties or files), and every Collector receiver it reaches.
The supported path is to read the official 2.x release notes in full, not only the headline change, and to record each breaking change that touches your configuration. Then test the upgrade in a non-production environment that mirrors your real exporter and Collector settings, and confirm that traces, metrics and logs arrive in the same backends with the same attribute names. Use staged rollout as the default: move a small set of services first, keep a rollback path to the 1.x agent, and widen the rollout only after data volume and dashboards look correct. Note that the security patch window for the 1.32.x line is a separate planning input. Confirm its dates, the fixes it contains and whether your 1.x deployments are affected directly with the release notes and the project maintainers, since this page does not state those details. Your security team should decide whether 1.32.x can stay in production while the 2.x migration runs.
What changes in the OpenTelemetry Java agent 2.x release notes
This table lists the changes a team must review before moving from the 1.x to the 2.x Java agent, with the impact on exporters, receivers and patched builds. Read each row against your current agent configuration, then fill the confirm cells from the official 2.x release notes before setting a cutover date. The main takeaway is that the default OTLP protocol change is only one of several items, and the security patch window for 1.32.x affects the timing.
| Change | Impact | Action needed |
|---|---|---|
| Default OTLP protocol moves to http/protobuf | Exporters that rely on the previous default may send to a different port and path, and any receiver that only accepts gRPC will stop receiving data unless the protocol is set explicitly. | Inventory every agent exporter setting and receiver endpoint, then set the protocol explicitly and confirm the default in the 2.x release notes. |
| Other breaking changes in the 2.x release notes | Each item may rename or remove settings, change instrumentation behavior or alter emitted attribute names that dashboards and alerts depend on. | Copy each breaking change from the official notes into this table with the affected settings. Confirm from release notes: [list each item here]. |
| Affected configuration keys and system properties | Settings renamed or removed in 2.x can fail silently, so the agent may run with defaults you did not intend. | Compare current configuration files, environment variables and system properties against the 2.x notes. Confirm from release notes: [affected keys]. |
| 1.32.x security patch window | Builds on 1.32.x that still need security fixes may stay exposed if the upgrade is delayed without a patch plan. | Confirm the patch window and maintainer guidance for 1.32.x before setting a cutover date. Confirm from release notes or maintainer statements: [window dates and guidance]. |
| Collector version changes affecting receivers | The Collector ships new versions on a frequent cadence, with v0.161.0 on September 16, 2026, v0.162.0 on September 29 and v0.163.0 on October 16, 2026. A receiver or exporter configuration valid for your current Collector may need changes after an agent upgrade. | Check the Collector version your receivers run against the agent's OTLP defaults, and test the new agent against the Collector version in staging. Confirm from release notes: [compatible Collector versions]. |
How the http/protobuf default reaches your Collector and backends
The receiver must accept the protocol the agent sends, so the first decision in this section is where the Java agent exports. The agent can send OTLP straight to a backend that accepts it, or to an OpenTelemetry Collector running as an agent beside the workload or as a gateway that takes data from many sources. When the 2.x agent switches its default OTLP protocol to http/protobuf, every hop on that path needs an OTLP receiver that listens on the HTTP transport. A Collector configured only for gRPC will not accept the new default, and data will be refused without any change to the application. Before you upgrade, inventory each exporter endpoint, the port it uses and the receiver behind it, and confirm which protocol each one expects.
You can either pin the protocol explicitly or accept the new default. Pinning, through the agent's protocol setting, keeps the wire format fixed while you move receivers and backends at your own pace, and it makes the change visible in configuration review. Accepting the default reduces setup work but ties the agent's behavior to the release you deploy. During the transition, enable both the gRPC and HTTP OTLP receivers on each Collector so that agents still on 1.x and agents already on 2.x can export at the same time, then remove the gRPC receiver only after every sender has been confirmed. Check the exact setting names against the agent documentation for your release.
Receivers also need a network review. Since Collector v0.110.0, server components bind to localhost by default rather than to all interfaces, so a receiver that worked for agents on the same host can silently stop accepting connections from other hosts after a Collector upgrade. Where agents or gateways reach a Collector across hosts, set the receiver endpoint explicitly, restrict it to the networks that need it, and add authentication, following the guidance in the Collector configuration best practices. Confirm these settings in a staging environment, because a binding or authentication mismatch shows up as dropped telemetry rather than as a failed deployment.
Choosing an upgrade path by how the agent is deployed
Services on virtual machines or application servers often start with a -javaagent flag that points to a jar on disk. The upgrade means replacing that jar and changing the launch configuration, so the team that manages host configuration or the application owner who edits the service unit or startup script usually owns the change. Each host becomes its own rollout target, which makes consistency the main risk.
- Jar path: Confirm where the agent file lives, whether it is referenced by a systemd unit, a Tomcat or JVM options file, or a deployment script, and update every reference together.
- Version pinning: Store the 2.x jar in your artifact repository with a checksum record, so hosts pull the same file and drift is visible.
- Configuration keys: Review OTLP exporter settings in environment variables or properties files, since the default protocol change in 2.x affects hosts that never set it explicitly.
- Rollback: Keep the 1.x jar and its launch configuration available so a host can revert without a rebuild.
- Checks: Confirm spans and metrics arrive at the Collector after restart, and that the application starts cleanly with the new flags.
After the change, confirm that every host reports the expected agent version and that no host still points to the old jar.
When the agent is copied into a container image, the upgrade becomes an image build and deployment problem. The application team or platform team that owns the Dockerfile or build pipeline changes the base layer or copy step, then rolls out new images through the normal release process. The agent version is tied to the image tag, so a rollback means redeploying an earlier image rather than editing a host.
- Image build: Update the agent download or copy step in the Dockerfile and rebuild, keeping the version as a build argument so it is visible in the image history.
- Image scanning: Scan the rebuilt image for vulnerabilities and confirm the agent layer matches the expected version.
- Staged rollout: Deploy to a non-production environment first, then roll forward service by service, since each image update is also an application release.
- Configuration in manifests: Check that exporter protocol, endpoint and resource attributes are set in deployment manifests or environment files, not only in the image.
- Checks: Confirm the running container reports the new agent version in logs and that telemetry reaches the Collector with the expected protocol.
Record the image digest for each service so you can tell exactly which agent version ran during an incident.
In Kubernetes clusters, the OpenTelemetry Operator can inject the Java agent into pods through an Instrumentation resource that references an agent image. The platform team that owns the cluster usually controls this resource, so the agent upgrade is a change to the agent image setting rather than to each application. Application teams see the change only when their pods restart.
- Agent image reference: Update the agent image in the Instrumentation resource and confirm which namespaces and workloads it applies to.
- Opt-in annotations: Check which pods use injection annotations and whether any override the image, since those pods may keep the old agent.
- Restart plan: Injection applies at pod creation, so plan rolling restarts and watch for pods that did not pick up the change.
- Operator compatibility: Confirm in your own environment that the Operator version supports the agent release you plan to deploy, because Operator and agent versions are not interchangeable.
- Checks: Verify injected pods run the expected agent version and that protocol settings in the Instrumentation resource match what the Collector accepts.
Operator and Collector upgrades are separate workstreams with their own sibling pages, so plan them in their own change windows.
What to back up and inventory before changing the agent version
A 1.x to 2.x agent change is only reversible if you know exactly what each service was running before it changed. These six inventories connect the running agent to the telemetry it produces, so a failed rollout can be reverted in minutes rather than reconstructed from memory.
Current agent version and JVM flags
Record the exact agent version and the -javaagent path on every service, along with the JVM flags and environment variables that load it. Include the container image tag or the jar checksum, not just the version label. Mixed versions across a fleet are common after partial rollouts, so the inventory must come from the running processes or deployment manifests, not from the release tracker. Without this record, rollback means guessing which services ran which build.
Exporter protocol, endpoints and headers
Capture the exporter settings for every service: protocol, endpoint URL, port, TLS settings and any authentication headers. The 2.x release changes the default OTLP protocol to http/protobuf, so a service that relied on the previous default will change transport at upgrade time. Pin the protocol explicitly in the saved configuration so that the upgrade and any rollback behave the same way.
Custom instrumentation, extensions and sampling
List every custom span, metric, extension jar, instrumentation module and sampler setting in use. Check each one against the 2.x release notes for changed APIs or removed options before the upgrade. Sampling settings deserve special attention because a changed default can alter the volume of traces reaching the Collector, which affects both cost and any dashboards built on sample rates.
Dashboards, alerts and queries
Export every dashboard panel, alert rule and saved query that reads telemetry, and note the span names, metric names and attribute keys each one depends on. Any renamed attribute or changed metric shape will silently empty a panel or stop an alert from firing. Treat this list as the acceptance test for the upgrade, and confirm each item still returns data after the change.
Non-production environment mirroring the Collector topology
Set up a test environment that uses the same Collector deployment pattern, pipeline processors and backend as production, not a single local collector. Protocol changes often show up only at the gateway or load balancer layer, so a direct connection in a test environment proves little. Run the upgraded agent there with real traffic patterns and compare the telemetry received against the baseline.
Rollback artifact and saved configuration
Keep the previous agent jar or image tag in your artifact registry, along with the deployment manifests and the exporter configuration that worked before the change. Confirm that the old artifact can still be pulled from your registry during the change window. A rollback that depends on a public download or on a manifest edited during the incident takes longer and is more error prone.
How agent telemetry moves during the cutover
Telemetry starts in instrumented services running either the 1.x or the 2.x Java agent. Each agent exports over OTLP to a Collector, which receives it on gRPC or HTTP receivers, processes it, and forwards it to the backend. The cutover decision sends a canary service to the 2.x agent first, so the team can compare its telemetry with the rest of the fleet. Check that the default protocol change to http/protobuf is reflected in agent settings and Collector receivers, and that traces, metrics and logs arrive at the backend with the expected attributes before moving more services.
Canary services move to the 2.x agent first while the rest of the fleet stays on 1.x.
The OpenTelemetry Java agent upgrade sequence with rollback points
This sequence moves services from the 1.x Java agent to 2.x one controlled change at a time, so the default OTLP protocol change to http/protobuf never reaches every service at once. Each step closes with a check that proves it worked and names what to restore if it did not.
Confirm release notes and the 1.32.x patch decision
The platform owner and the service owners who run the agent read the 2.x release notes and match each breaking change against their current agent configuration, including the default OTLP protocol change to http/protobuf. They also decide whether 1.32.x receives the security patch now and whether it stays as the fallback artifact. The step is done when every breaking change has an owner and the decision is recorded in the change record. Rollback point: nothing is deployed yet, so record the current 1.x artifact and its protocol setting as the known-good state.
Accept both protocols at the Collector
Enable an OTLP HTTP receiver alongside the existing OTLP gRPC receiver on the gateway Collector, leaving the existing pipelines unchanged. Confirm the bind address is set explicitly, because server components bind to localhost by default since Collector v0.110.0 and other hosts cannot reach them otherwise. The check is that telemetry from a 1.x agent still reaches the backend and that a test http/protobuf request sent to the new receiver appears in the debug or backend exporter. Rollback point: remove the added receiver block from the configuration, reload, and restore the previous file from version control.
Pin the protocol in one canary service
In one canary service, set the OTLP protocol explicitly in the deployment manifest to the value the service uses today, before the agent changes. This stops the 2.x default from changing the protocol silently when the agent is upgraded. The check is that after a restart on the 1.x agent with the pin in place, spans, metrics and logs arrive at the backend with the same service name and resource attributes as before. Rollback point: remove the pin and restart the service, which returns it to the prior state.
Verify the 2.x agent in non-production
The application owner deploys the 2.x agent artifact to a non-production copy of the canary service, keeping the protocol pin in place. The team generates the same test load used on the 1.x baseline and compares span, metric and log arrival at the backend, including service names, resource attributes and counts. Confirm the artifact against the checksum published with the release before use. The step is done when all three signal types arrive with no new errors in the agent or Collector logs. Rollback point: restore the previous 1.x agent artifact and the recorded protocol setting, restart, and confirm the signals return.
Roll out the agent in checkpointed waves
Group the remaining services into waves by owner and criticality, and upgrade one wave at a time with the same pinned protocol. After each wave, check Collector receiver and exporter error metrics, confirm that all three signals arrive for every service in the wave, and record sign-off before the next wave starts. The 1.32.x artifact stays available as a fallback for the whole rollout. Rollback point: for the failing wave only, restore the previous artifact and protocol setting, leaving earlier waves on 2.x if their checkpoints passed.
Remove the temporary dual-protocol receiver
Once every service runs the 2.x agent and your team has observed the fleet for an agreed period, remove the temporary HTTP receiver or keep only the protocols still in use. Confirm in receiver metrics or logs that no service still sends on the protocol being removed, and validate the Collector configuration in CI before the change is deployed. The step is done when the final configuration is in version control and the backend shows the same signal coverage as before the change. Rollback point: re-add the receiver block from version control and reload the Collector.
How to test the 2.x agent and roll back without losing telemetry
Verification should show that the 2.x agent emits the same telemetry as 1.x for the same workload before any production service moves. Run one test workload twice, once with the 1.x agent and once with the 2.x agent, and compare span counts, metric names and log correlation side by side. Check that trace IDs appear in log records the way they do today, that the same instrumented operations produce spans, and that metric names and attribute keys match. Set the pass thresholds yourself from your own baselines of normal volume and variance for each service, since any tolerance written in advance would be a guess for your environment. Run the comparison on the new OTLP default (http/protobuf) and on any protocol you still need, because the exporter path is where most differences will appear.
Next, confirm that everything that reads telemetry still works. Dashboards, alert rules and saved queries refer to metric names, span names and attributes by string, so a renamed or missing name fails silently: the panel goes empty and the alert never fires. List every query and rule that touches the instrumented services, then run each one against the test data and confirm it returns results. Also scan the application logs and the Collector logs for exporter errors, such as refused connections, protocol mismatches, or rejected payloads, during the full test window and not only at startup. A clean application log with a failing exporter still means lost data.
Rollback means restoring the previous agent artifact and the previous exporter configuration together, so the 1.x agent and its protocol settings return as one unit. Keep the 1.x artifact available in your artifact store until the 2.x rollout is complete, and write down the exact configuration keys each environment uses. Any telemetry gap during the change window should be recorded with its start time, end time, affected services and the cause, so that dashboards and any compliance evidence can explain the missing period. Confirm the rollback path in a test environment before the production change, and confirm with your own change process how long a rollback is permitted to take.
What makes the OpenTelemetry Java agent upgrade take longer
This table lists the factors that stretch a 1.x to 2.x Java agent upgrade and explains why each one adds effort. Read each row as a question to answer about your own estate before estimating the work. The main takeaway is that the protocol default change is rarely the hard part; the hard part is finding every place that depends on the old behavior.
| Driver | Why it adds effort | How to reduce it |
|---|---|---|
| Number of services and deployment methods | Each service has its own agent version and startup configuration, and services may be built from different images, scripts or Kubernetes manifests. Every one must be found and changed. | Build an inventory of every service, how it attaches the agent and where its settings live, then group services by deployment method so one change pattern covers many services. |
| Custom instrumentation and agent extensions | Code that calls the agent API, custom span processors or extensions compiled against 1.x classes may need changes or retesting before they run on 2.x. | List every extension and direct API call, check each against the 2.x release notes, and retest them in staging before touching production. |
| Dashboards and alerts that depend on telemetry names | Queries, alert rules and dashboards keyed to attribute or metric names will break or go silent if names or defaults change during the upgrade. | Export the names used by dashboards and alerts, compare them with what the new agent emits in staging, and update queries before the production cutover. |
| Collector topology and receivers that must accept both protocols | If the default export protocol changes to http/protobuf, every receiver, load balancer and gateway on the path must accept it, or data is dropped. | Map each receiver and network path, confirm each one accepts the protocol the new agent sends, and stage the change so receivers are ready before agents move. |
| Regulated change control and approval windows | Production changes in regulated environments often need a written change record, risk review and a defined window, which can push a finished test result weeks into the future. | Prepare change records early with the test evidence, agree rollback steps in advance, and ask your change board which windows are available before setting the plan. |
| Availability of a non-production environment with realistic telemetry | Staging that receives little or no traffic will not show volume, batching or protocol problems, so issues surface only in production. | Replay representative traffic or run a load pattern through staging, and confirm that staging uses the same Collector topology and backends as production. |
Questions teams ask before upgrading the OpenTelemetry Java agent
How much does an OpenTelemetry Java agent upgrade cost?
The cost depends on the written scope, and DeployOpen does not publish a price list, so a quote follows from that scope. The main cost drivers are the number of services running the agent, the number of environments, whether the default OTLP protocol change requires Collector endpoint or receiver changes, whether custom instrumentation or agent extensions depend on 1.x behavior, and how deep the testing goes. Most of the work is one-time: assessment, change plan, per-service rollout and verification. Recurring costs only arise if you add a support or testing retainer. Internal staff time is a cost too, even when a partner does the work. When you request a quote, ask for the service inventory covered, the Collector changes included, the test scope, the rollback plan and the deliverables for each phase.
How long does the Java agent upgrade take across our services?
No duration is stated without a written scope, but the timeline is set by a few factors you can plan for now. The number of services and their release cadence matter most, followed by change freeze windows, the depth of verification each service needs and whether Collector endpoints must be updated before the agents move. Services that share a Collector gateway usually need coordinated sequencing. The 1.32.x security patch window also belongs in the plan, because the decision about when to move off 1.x affects how long you run a version with known fixes pending. Confirm the window with the project's release notes and your own security policy before you set dates. Ask for a milestone plan that shows pilot, staged rollout, verification and sign-off as separate steps with their own exit criteria.
What does our team need to provide for the upgrade?
The upgrade needs people and access more than hardware. Name one owner for the migration plan, one owner for each affected application team, and a change approver who can accept the risk of the rollout schedule. Provide read and deploy access to the services and their build or deployment pipelines, plus access to the Collector configurations they export to. A test environment that resembles production matters, including the same Java runtime versions, network paths and Collector setup, so that telemetry can be compared before and after the change. Confirm the approvals each change needs, including security sign-off for the agent version and any change board timing. Also agree who will review dashboards and alerts after the move, because attribute or protocol changes can affect them even when the agent itself works.
Can our internal team upgrade the Java agent without a partner?
Yes, many internal teams can, provided they have the right skills and enough time. The work needs engineers who understand the Java runtimes and build tooling used by your services, people who can configure the agent through its supported settings, and someone who can read and change Collector configuration. Teams also need a way to compare telemetry before and after the move, so they can confirm that traces, metrics and logs still arrive with the expected names. The trade-off is time and attention: staff who maintain the services will carry the upgrade alongside their normal work. A common first step is a pilot on one low-risk service, which shows the real effort before you commit the rest of the estate. If the pilot exposes gaps in skills or test coverage, you can decide then whether to bring in outside help for the remaining services.
Can we keep running Java agent 1.x during the 1.32.x patch window?
You can keep 1.x running for a period, but that is a risk decision your organization must make and document. Confirm the patch window, the fixes it covers and the supported end of the 1.x line in the project's release notes and your own vendor policy before you decide. The risk is that the agent runs inside every instrumented Java process and can see application data, so an unpatched vulnerability in it may affect those services. To manage the exposure, track which services run 1.x, apply the security fixes that the project provides for the line you run, and schedule the move to 2.x with clear dates. Record the decision, the owner who accepted it and the review date. Security testing can confirm the exposure on a specific estate if your assessors need that evidence.
What does a rollback look like after moving to Java agent 2.x?
A rollback means returning each affected service to the last known good 1.x agent, restarting it and confirming that telemetry arrives as before. Prepare it before the rollout starts. Keep the previous agent artifact available in your artifact store, keep agent settings and Collector configuration in version control, and document the settings that select the OTLP protocol so that you can restore the earlier behavior if the Collector endpoint does not accept the new default. Expect a telemetry gap during each restart, and check whether dashboards or alerts depend on attribute names that changed. Test the rollback in the staging environment on the pilot service, time how long it takes, and assign an owner who can start it during a change window. Record the rollback result so the next attempt starts from evidence.
How DeployOpen scopes, delivers and supports the agent upgrade
DeployOpen approaches the move to the 2.x Java agent as a fixed-scope piece of work: the agent inventory, the OTLP protocol change, the breaking changes from the release notes and the 1.32.x patch window are agreed in writing before any service is touched. The work is then built, tested in staging and handed over with runbooks your team can operate.
How we scope
- Inventory every service running the 1.x Java agent, including how each one is started and configured.
- Map each exporter setting to its 2.x equivalent, flagging services that rely on the old gRPC default.
- Agree in writing which release notes items apply to your setup, and the timing of the 1.32.x patch window.
How we build
- Change the agent version and the OTLP protocol in a staging environment that mirrors production collectors.
- Test that traces, metrics and logs arrive at the backend with the same attributes and service names as before.
- Roll changes out service by service in your own clusters or hosts, with a rollback path for each batch.
How we hand over
- Deliver a written record of configuration changes, version pins and the protocol settings applied per service.
- Provide a verification checklist your team can rerun after future agent or Collector upgrades.
- Walk your platform and application teams through the runbook so they own the next upgrade cycle.
How we support
- Engagements are fixed-scope, so the support boundary for the upgrade is set in the written scope.
- Ongoing upgrades, continuous checks and retesting after new agent releases are available as a retainer.
- Ask any partner to confirm the support hours, response terms and handover artifacts in the quote.

