Video in progress
How do you draw up a plan to migrate 120 Java services from a vendor APM agent to OpenTelemetry?
First I put in the Collector and make it also send to the old backend, then I move services to the OTel Java agent in waves, checking at each wave that trace continuity and the dashboards/alerts still work. The hardest part is not the code but the vendor-tied dashboards, alerts and propagation formats.
📖 Answer
The main risk is traces breaking during the migration: service A sends the vendor-format header, but service B only understands W3C traceparent. As a result, distributed traces are in pieces for months.
The stages:
-
Inventory: which services use the vendor SDK in code (custom spans, annotations) and which use only the agent. Which dashboards and alerts depend on vendor-specific metric names. This list shows the real size of the migration.
-
Platform preparation: put in an OTel Collector gateway that accepts OTLP and, for now, exports to the old vendor backend (many vendors accept OTLP). Then switching the backend is left for later, and the two jobs don't get mixed up.
-
Propagation bridge: configure the OTel agent with several propagators:
otel.propagators=tracecontext,baggageand, if needed, the vendor or B3 formats. Most vendor agents can also accept W3C, and this should be turned on before the migration. Then traces stay connected during the mixed period. -
Waves: the first wave is 3-5 low-risk services, then groups of neighboring services along the traffic flow. For each service: swap the agent, move the vendor API calls in the code to the OTel API (or Micrometer Observation), and run a week of parallel comparison.
-
Success criteria for each wave: the percentage of end-to-end traces, a span count close to the previous one, overhead (CPU, startup) measured, and the golden dashboards and SLO alerts working on the new metric names.
-
Choosing the backend and shutting down: once all services are on OTLP, dual-write to the new backend in the Collector configuration, compare, and then end the vendor contract.
The organizational side: the platform team provides one "migration kit" (Helm values, the starter version, a checklist), and the service teams set aside a day or two for their own wave. This usually stretches over several quarters and you shouldn't rush it. The worst outcome is the two systems running in parallel forever.
Sign up to mark studied questions and save your progress.