Docs/Resources/Migration Guide

Migration Guide

Step-by-step instructions for moving between NxtOne versions, and for migrating from a legacy APM tool.

Migrations are designed to run in-place with zero downtime. Each guide below lists prerequisite versions, exact commands, and a rollback path. If you are coming from another observability tool rather than upgrading NxtOne, skip to the APM migration appendix.

1. How NxtOne migrations work

  • In-place. Upgrade the SDK dependency in each service and redeploy it through your normal pipeline. There is no separate NxtOne component to roll, no parallel environment to stand up, and no cutover window.
  • Version skew is expected. The platform accepts events from older SDK releases, which is exactly what lets you upgrade services one at a time. The reverse — an SDK newer than the platform it reports to — is the one unsupported combination.
  • Breaking changes arrive with notice. Anything that will break is deprecated at least one release before it is removed, so a migration is applying changes you were already told about. See the changelog.

2. Migrating 0.1.7 → 0.1.8

FieldValue
Prerequisite version0.1.7 (upgrade to 0.1.7 first if you are older)
Breaking changesNXTONE_KEY removed — use NXTONE_API_KEY
DowntimeNone
RollbackSupported — see below
Step 1 — rename the credential variable

NXTONE_KEY was deprecated in 0.1.7 and is removed in 0.1.8. Services that set only the old name start without a key, so the SDK runs as a no-op. Set the new name before upgrading — both are accepted on 0.1.7, so this step is safe to do on its own and is what keeps the migration zero-downtime:

bash
# Find every place the old name is still set grep -rn "NXTONE_KEY" ./deploy ./charts ./docker-compose.yml # Rename it. On 0.1.7 both names work, so this can ship independently. export NXTONE_API_KEY="$NXTONE_KEY"
Step 2 — upgrade the SDK in each service

Bump the NxtOne dependency to the new release in each service, then build and deploy it the way you normally ship:

bash
# Java — set the nxtone.version property in your build to the new release, then rebuild # Python pip install "nxtone==<release>" # Node.js npm install @nxtone/agent@<release>
Step 3 — confirm each service

Before moving to the next service, check that the SDK started cleanly in the one you just deployed:

bash
kubectl logs deployment/payment-service | grep -i nxtone # Java: nxtone: agent attached ... then nxtone: application ready # Node.js: NXTONE_SESSION_ID=<uuid> # Any: a missing-key hint means NXTONE_API_KEY did not reach the process
Rollback

Revert the dependency bump and redeploy, or roll the Deployment back. Keep NXTONE_API_KEY set — 0.1.7 accepts it, so the rename from step 1 stays in place:

bash
kubectl rollout undo deployment/payment-service

3. Multi-version jumps

Apply releases in order rather than jumping straight to the newest. Each breaking change assumes the previous one has been made, so skipping an intermediate release means applying two sets of changes blind. Upgrading 0.1.0 → 0.1.8 means going through 0.1.7 first, and doing the credential rename while 0.1.7 still accepts both names.

4. APM migration appendix

NxtOne is not a drop-in replacement for a metrics-and-traces APM, and pretending otherwise makes migrations fail. The mapping tables below give the honest equivalent for each concept — including the ones that have no equivalent, which are usually the ones that derail a cutover if you find them late.

From Datadog
DatadogNxtOne equivalentNotes
APM traceExecution flow within a sessionCaptured automatically — there is no equivalent of manual span creation.
SpanObserved method frameFrames are captured at runtime level, so you get local method context Datadog never saw.
serviceNXTONE_PROJECT_IDOne project per service. This is the single most important mapping to get right.
DD_API_KEYNXTONE_API_KEYSame idea, different scoping — NxtOne keys carry read/write/admin scope and an expiry.
ddtrace-run / -javaagentThe NxtOne SDKJava: the Spring Boot starter or Nxtone.attach() — no -javaagent flag required. Python: @nxtone.NxtOneAgent. Node.js: --import @nxtone/agent/register. See Installation.
Trace sampling rateCode-path exclusionsDifferent model: NxtOne narrows what is observed rather than sampling a fraction of it.
Custom metricsNo direct equivalentNxtOne models behaviour, not counters. Keep your metrics pipeline for these.
Dashboards and monitorsNo direct equivalentInvestigations and natural-language queries replace the workflow, not the widgets. Do not plan to recreate dashboards one for one.
From OpenTelemetry
OpenTelemetryNxtOne equivalentNotes
service.nameNXTONE_PROJECT_IDDirect mapping. Reuse the value you already have so historical comparisons still line up.
Auto-instrumentation librariesThe observation layerAttaches at runtime level rather than per-library, so coverage does not depend on a library having an instrumentation package.
Manual spansCaptured automaticallyExisting manual spans keep working under your OTel pipeline; they are not imported into NxtOne.
OTLP exporter endpointBuilt into the SDKThe SDK sends directly to the hosted NxtOne API over HTTPS. The endpoint is fixed in public SDK builds — there is no exporter or collector to configure.
Sampler configurationCode-path exclusionsExclusions are deterministic — no probabilistic gaps in the behavioral map.
Resource attributesPartialProject and session identity map cleanly; arbitrary resource attributes do not carry over.
Metrics and logs signalsNo direct equivalentNxtOne covers the trace/behaviour signal. Keep OTel for metrics and logs.
From Sentry
SentryNxtOne equivalentNotes
Error eventThrow frame in an execution flowCaptured with the surrounding execution context rather than as a standalone event.
BreadcrumbsExecution flowThe flow is the full path, not a truncated trail of recent events.
Stack trace with source contextApplication code mappingLinks execution to your repository so investigations show the exact code.
DSNNXTONE_API_KEYBoth identify the project and authenticate ingest.
Source maps uploadAutomatic during code mappingNo separate upload step in the build.
Release health, alert rulesNo direct equivalentKeep Sentry for release-health alerting if you rely on it.

5. Zero-downtime cutover

Run both tools in parallel and let the old one prove the new one. Nothing is decommissioned until NxtOne has been correct on a real incident:

PhaseWhat you doCheckpoint before moving on
1. Dual-shipAdd the NxtOne SDK alongside the existing APM agent on one non-critical service.Both tools report the service. Latency and error rate unchanged from the pre-install baseline.
2. CompareReplay a known incident, or induce a failure in staging, and diagnose it with both tools.NxtOne reaches the same root cause. If it does not, find out why before widening.
3. ExpandRoll to the rest of the fleet, one service group at a time.Every service appears under its own project. No gaps from a missing SDK dependency, a missing API key, or exclusions.
4. Shift workflowMove debugging to NxtOne while alerting stays on the incumbent.One full on-call rotation where the team used NxtOne first by choice.
5. DecommissionRemove the old agent, service by service.This is the point of no return — historical data in the old tool stops accumulating and is not backfilled into NxtOne.
Historical data does not migrate. No APM tool exports its trace history into another, and NxtOne is no exception. Keep the incumbent in read-only mode for as long as its retention window matters to you, and time the cutover so you are not mid-quarter on a comparison you still need.
Running NxtOne alongside your APM agent

Dual-shipping is supported, and the NxtOne SDK and the incumbent APM agent do not conflict — but both run inside your service and both cost resources. Raise container limits for the parallel period, then bring them back down after decommissioning:

yaml
environment: # Incumbent APM, unchanged DD_API_KEY: ${DD_API_KEY} DD_SERVICE: payment-service # NxtOne, alongside it NXTONE_API_KEY: ${NXTONE_API_KEY} NXTONE_PROJECT_ID: payment-service
Rollback

Until phase 5 the rollback is simply removing the NxtOne SDK — the incumbent never stopped working. Remove the SDK dependency, restore the previous resource limits, and nothing about your existing observability has changed.

6. Per-tool gotchas

GotchaWhere it bitesWhat to do
Sampling assumptionsTeams used to 10% trace sampling expect NxtOne to sample too.It does not — it narrows by code path instead. Set exclusions deliberately or overhead will surprise you.
Service naming driftDatadog service names and NXTONE_PROJECT_ID diverge over time.Copy the incumbent's service name exactly. Divergence makes side-by-side comparison useless during phase 2.
Tag and attribute renamingCustom tags do not carry over.Inventory which tags your dashboards and alerts depend on before decommissioning anything.
Double overhead in parallelThe NxtOne SDK and the incumbent APM agent in containers sized for one.Raise limits before dual-shipping. Post-cutover OOM kills are almost always this.