Prompt
Why is tracing an agent in New Relic such a pain?
Latest observation
Nov 21, 2026
OpenAI APIWeb search: off
Because “an agent” is often not a single thing you can just attach a tracer to.
In New Relic, tracing can feel painful for a few common reasons:
-
Agents are often distributed
- What you think of as “the agent” may actually be multiple processes, services, threads, or containers.
- Tracing one component doesn’t automatically give you the full request path.
-
Instrumenting requires the right hooks
- New Relic tracing depends on language/runtime-specific instrumentation.
- If your code uses unusual frameworks, async patterns, queues, or custom networking, the agent may miss spans unless you add manual instrumentation.
-
Context propagation is fragile
- Traces only stay connected if trace context is passed correctly across service boundaries.
- If headers, metadata, or message properties aren’t propagated, the trace gets broken into separate fragments.
-
Dynamic environments make it harder
- Containers, serverless, autoscaling, and ephemeral hosts can complicate deployment and configuration.
- You may get partial visibility because the runtime changes frequently.
-
Sampling and overhead tradeoffs
- Full tracing can be expensive, so agents sample.
- That means the exact trace you want may not be captured, or not at the fidelity you expect.
-
Configuration is easy to get subtly wrong
- A small mistake in app naming, license keys, environment variables, log correlation, or distributed tracing settings can make tracing seem broken.
- Sometimes it is working, just not where you’re looking.
-
“Agent” can mean different things
- People may mean New Relic’s APM agent, a background worker, an internal bot, an integration agent, or even an AI agent.
- The tracing approach differs depending on which one you mean.
If you want, I can help you diagnose the specific pain point:
- APM / distributed tracing
- logs not correlating with traces
- custom spans missing
- agent in Docker/Kubernetes
- OpenTelemetry vs New Relic agent setup
Brands