If you own the tracing pipeline but not the application source, waiting on every service team to add an SDK means traces arrive months late or never. Instead, you can use OpenTelemetry agents to send traces to Jaeger without changing application code, or use eBPF-based collection when injected agents aren’t an option.
This article explains how Jaeger auto-instrumentation works, how it compares with manual instrumentation, and how to configure OpenTelemetry agents, route traces, and verify them in Jaeger. It also covers performance overhead and how eBPF can collect telemetry from workloads that cannot accept injected agents.
What is Jaeger auto-instrumentation
Jaeger auto-instrumentation refers to collecting traces from applications without manually adding tracing calls to their source code. OpenTelemetry language agents intercept supported operations, such as HTTP requests, database queries, and messaging calls, and generate spans that can be exported to Jaeger. In Kubernetes, the OpenTelemetry Operator can inject these agents when application pods are created.
OpenTelemetry calls this zero-code instrumentation. You can configure it through environment variables, Kubernetes annotations, or an Instrumentation resource without changing application code.
How Jaeger auto-instrumentation works
Auto-instrumentation captures supported application operations, creates spans, and exports them to Jaeger over the OpenTelemetry Protocol (OTLP). As requests move between services, trace context links their spans so you can follow the complete request in the Jaeger UI.
Traces and Spans Fundamentals
A trace represents a request as it moves through your system, while a span records an individual operation, such as an HTTP request or database query. Each span contains a name, start and end timestamps, and attributes describing the operation. Child spans also reference their parent, allowing Jaeger to reconstruct the request’s execution path.
Jaeger displays traces as waterfalls of spans, showing how long each operation took and where latency accumulated. You can search by service name, inspect individual spans, and identify slow or failed operations across services.
OpenTelemetry as the Instrumentation Layer
OpenTelemetry handles instrumentation and trace export, while Jaeger stores and visualizes the resulting traces. Language agents automatically instrument supported frameworks and libraries, creating spans without requiring developers to add tracing calls manually.
For applications still using Jaeger’s retired native clients, migrate to OpenTelemetry SDKs and exporters. Applications built on the older OpenTracing API can use OpenTelemetry compatibility shims during migration rather than rewriting all existing tracing calls immediately.
Exporting Traces via OTLP
Jaeger accepts traces directly over OTLP, using gRPC on port 4317 or HTTP on port 4318. With OTLP/HTTP, spans are sent to the /v1/traces endpoint. Configure OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_PROTOCOL to match the destination and transport.
OpenTelemetry agents typically batch spans before exporting them to Jaeger or an OpenTelemetry Collector. The application therefore needs network access to the configured endpoint, but a separate Collector is not required for direct trace export.
Context Propagation Across Microservices
Trace context connects operations across service boundaries. When an instrumented service makes an outgoing request, its propagator adds the trace ID and parent information to the request headers. The receiving service extracts that context and creates child spans under the same trace, allowing Jaeger to display operations from multiple services together.
OpenTelemetry commonly uses W3C Trace Context headers for propagation. Services must use compatible propagators, and intermediate proxies must preserve the relevant headers. If spans from the same request appear in separate traces, check for uninstrumented services, missing context propagation, or proxies that modify or remove trace headers.
Auto-instrumentation vs manual instrumentation
Auto-instrumentation captures supported application operations without requiring developers to add tracing code. Language agents instrument frameworks and libraries, while eBPF-based tools observe supported application and network activity outside the process. Both approaches can provide tracing coverage across services, but they cannot capture every internal operation or business event.
Manual instrumentation gives you control over what gets traced. By adding OpenTelemetry SDK calls to application code, you can create spans for operations such as payment validation, order processing, and retry logic, then attach attributes that explain what happened. The trade-off is that developers must implement and maintain the instrumentation.
You don’t have to choose one approach exclusively. Use auto-instrumentation to capture supported HTTP requests, database calls, and service dependencies, then add manual spans where you need more detail. For example, automatic tracing might show that a checkout request took 400 milliseconds, while a manual span can identify how much of that time was spent validating a payment.
When combining both approaches, check for overlapping instrumentation. If an agent and application code instrument the same operation independently, they can generate duplicate spans and increase telemetry volume. Configure instrumentation and context propagation so that automatically generated and manual spans form the same trace.
Setting up auto-instrumentation for Jaeger
To set up auto-instrumentation with Jaeger, configure an OpenTelemetry agent to capture application spans and export them over OTLP to Jaeger or an OpenTelemetry Collector. In Kubernetes, you can use the OpenTelemetry Operator to inject language-specific instrumentation into workloads without modifying their application code.
Kubernetes-native injection with the OpenTelemetry Operator
The OpenTelemetry Operator uses a Kubernetes admission webhook to inject language-specific instrumentation into application pods. The following example instruments an existing Java Deployment and sends its traces directly to Jaeger over OTLP/HTTP.
1. Check the prerequisites.
You need a Kubernetes cluster, an existing Java Deployment named checkout-service in the shop namespace, and a reachable Jaeger or OpenTelemetry Collector endpoint. This example assumes Jaeger is available as the Service jaeger in the observability namespace on port 4318.
Verify that the Jaeger Service exists:
If your Jaeger deployment uses a different Service name, namespace, or port, use its actual address in the Instrumentation configuration below.
2. Install the OpenTelemetry Operator.
Add the official Helm repository and install the Operator with automatically generated webhook certificates:
The admission webhook must have a TLS certificate trusted by the Kubernetes API server. These settings generate a self-signed certificate without requiring cert-manager. If your cluster already uses cert-manager, you can instead use the chart’s default certificate configuration.
3. Create an Instrumentation resource.
The Instrumentation custom resource defines the export endpoint, context propagation, and sampling settings for injected workloads. Save the following configuration as jaeger-instrumentation.yaml:
This configuration uses OTLP/HTTP on port 4318 and W3C Trace Context for propagation. The sampler retains newly started root traces during initial verification while respecting upstream sampling decisions. You can lower the sampling ratio after confirming that traces arrive correctly.
Apply the resource and confirm that Kubernetes recognizes it:
4. Enable injection for the Java Deployment.
Add the instrumentation.opentelemetry.io/inject-java annotation to the existing Deployment’s pod template:
This patch preserves the application’s container image and existing configuration. It changes the pod template, which triggers a rollout and allows the Operator to inject the Java agent into newly created pods. The annotation references the jaeger-instrumentation resource in the same namespace.
For other runtimes, the Operator supports annotations such as inject-nodejs, inject-python, and inject-dotnet. Note that Node.js Operator injection defaults to OTLP/gRPC on port 4317. If you reuse an OTLP/HTTP endpoint on port 4318, configure the Node.js exporter to use http/protobuf.
5. Verify that instrumentation was injected.
Wait for the Deployment rollout, then inspect its pods:
Check that the pod includes the opentelemetry-auto-instrumentation-java init container and that the application container has injected OpenTelemetry settings, including JAVA_TOOL_OPTIONS and OTEL_EXPORTER_OTLP_ENDPOINT.
If injection is missing, inspect the Kubernetes events:
Look for admission webhook errors, failed init containers, or problems locating the Instrumentation resource. Successful injection confirms that the agent was added, but you still need to generate application traffic and check Jaeger to verify trace delivery.
Java, Node.js, Python, .NET, and Apache HTTPD injection are enabled by default in the Operator configuration discussed here. Go and NGINX require additional feature configuration, while Go also uses a privileged eBPF sidecar rather than an in-process language agent.
Agent-based setup by language
Outside Kubernetes, you can attach OpenTelemetry instrumentation directly when starting an application. The setup differs by runtime, but the agents use standard OpenTelemetry configuration to identify the service and export traces to Jaeger or an OpenTelemetry Collector.
For a local Jaeger instance accepting OTLP/HTTP on port 4318, configure these environment variables before starting the application:
Replace checkout-service with the appropriate service name. The localhost endpoint applies when the application can reach Jaeger on the same host; containers and Kubernetes workloads generally need a reachable container or Service address.
- Java: Download the OpenTelemetry Java agent from the official releases and attach it when starting the JVM. The agent uses bytecode instrumentation to capture supported HTTP, database, and messaging operations without application code changes.
- Node.js: Install the OpenTelemetry API and auto-instrumentation package, then preload the instrumentation before the application starts.
The package instruments supported Node.js libraries, including common HTTP clients and servers. You can enable or disable individual instrumentations to control telemetry volume. Fastify also offers its own instrumentation through @fastify/otel.
- Python: Install the OpenTelemetry distribution and OTLP exporter in the application’s Python environment. Bootstrap the instrumentation packages for the installed libraries, then start the application through
opentelemetry-instrument.
Bootstrap discovers supported installed libraries and installs their instrumentation packages. For Kubernetes injection, the Operator defaults to OTLP/HTTP; musl-based Python images also need the instrumentation.opentelemetry.io/otel-python-platform annotation.
-
Go: OpenTelemetry’s Go auto-instrumentation uses eBPF uprobes attached to a compiled executable rather than a Java-style runtime agent. In Kubernetes, the Operator injects a sidecar that requires elevated permissions, includingprivileged: trueandrunAsUser: 0. You must also configure the target executable path throughOTEL_GO_AUTO_TARGET_EXE, or the corresponding Operator annotation. Go injection is not supported for multi-container pods and covers a limited set of supported packages. -
.NET: Install the OpenTelemetry .NET automatic instrumentation distribution on the host or in the application image. Its startup configuration loads the OpenTelemetry startup hook and CLR profiler before the application begins executing. On supported Linux installations, the distribution’sinstrument.shscript configures the necessary environment variables. In Kubernetes, the Operator’sinject-dotnetannotation handles injection.
The OpenTelemetry Operator also provides opt-in PHP instrumentation and initial Ruby instrumentation. Both are disabled by default and require additional Operator configuration.
These approaches create spans for supported frameworks and libraries without manually instrumenting application source code. For custom business operations, such as payment authorization or checkout validation, add manual spans where automatic instrumentation does not provide enough detail.
Routing through the OpenTelemetry Collector
You can export traces directly to Jaeger over OTLP without deploying a separate OpenTelemetry Collector. Direct export is generally sufficient for local development and smaller deployments that don’t need centralized telemetry processing.
For production environments, a Collector provides a separate layer for batching, retrying failed exports, filtering, routing, and sampling telemetry. It also lets you change destinations or forward traces to multiple backends without reconfiguring application agents. When you need tail-based sampling, the Collector’s tail-sampling processor can make decisions after receiving spans from a trace rather than sampling at the beginning of a request.
The OpenTelemetry Operator manages Collectors through the OpenTelemetryCollector custom resource. In Kubernetes, you can deploy Collectors as DaemonSets for node-local collection or Deployments for centralized processing. You can also combine both, forwarding telemetry from node-level Collectors to shared gateways, or inject Collectors as sidecars when workloads require a local collection process.
Jaeger Operator vs OpenTelemetry Operator
The two operators historically split responsibilities. The Jaeger Operator managed backend instances, storage wiring and legacy jaeger-agent sidecar injection, while the OpenTelemetry Operator handled application instrumentation. The Jaeger Operator is now deprecated, Jaeger v1 has reached end-of-life, and the jaeger-agent image is no longer distributed, so existing sidecar.jaegertracing.io/inject annotations have no maintained agent behind them.
Jaeger v2 is built on the OpenTelemetry Collector framework, and the OpenTelemetry Operator deploys Jaeger v2 on Kubernetes. One operator now covers both instrumentation injection and the Jaeger backend.
Running Jaeger locally and verifying traces
You can verify auto-instrumentation using a local Jaeger v2 instance with in-memory storage. The following example starts Jaeger in Docker, attaches an OpenTelemetry Java agent to an existing application, and checks whether its spans appear in the Jaeger UI.
Start Jaeger with the OTLP receivers and web UI exposed:
Port 16686 serves the Jaeger UI, while 4317 accepts OTLP/gRPC and 4318 accepts OTLP/HTTP. The container uses in-memory storage, so traces are lost when it stops. Keep it running while completing the following steps in another terminal.
Verify Traces From a Java Application
You need an existing Java application packaged as app.jar and the OpenTelemetry Java agent downloaded as opentelemetry-javaagent.jar. Place both files in the same directory.
1. Configure the exporter and start the application.
The agent instruments supported Java libraries and exports spans to Jaeger over OTLP/HTTP. The metrics and logs exporters are disabled here because this example only verifies traces. The localhost endpoint works when the Java application runs on the host where Docker publishes Jaeger’s ports. Applications running in separate containers or Kubernetes pods need an endpoint reachable from their own network.
2. Generate application traffic.
Send several requests to an endpoint handled by a supported instrumented library, such as an HTTP server endpoint. The agent must be attached when the requests are processed; starting Jaeger and the application alone does not guarantee that spans will be generated.
3. Inspect the traces in Jaeger.
Open http://localhost:16686, select checkout-service from the Service dropdown, and set the Lookback range to include your test requests. Run the search, open a trace, and inspect its spans and attributes. If the application makes instrumented downstream calls and trace context is propagated, those operations should appear within the same trace.
Troubleshooting Missing or Incomplete Traces
If traces don’t appear, start by checking whether the application generated spans, whether the exporter can reach Jaeger, and whether the search filters match the requests.
If the service still doesn’t appear, inspect the application startup logs for agent initialization or exporter errors. You can also check the running Jaeger container with docker ps and review its logs using docker logs jaeger.
Performance overhead and limitations
Auto-instrumentation adds CPU, memory, and processing overhead, but its impact depends on the application, runtime, enabled instrumentation, and workload. To measure it, establish an uninstrumented baseline, then repeat the same load test with instrumentation enabled. Compare CPU usage, memory consumption, p95 latency, startup time, and generated trace volume while keeping traffic, resource limits, and test conditions consistent. For Kubernetes deployments, measure the resource consumption of node-level collectors and sensors separately from application instrumentation overhead.
Beyond steady-state CPU and memory usage, consider these additional sources of overhead:
-
Java startup time: The Java agent initializes and instruments supported classes as the JVM starts, which can increase startup latency. Measure startup time separately from steady-state resource consumption. -
Go binary analysis: Go’s eBPF-based instrumentation analyzes the compiled executable before attaching probes. Large binaries containing DWARF debugging information can increase analysis time and memory consumption. -
Span processing:SimpleSpanProcessorexports spans individually, potentially increasing overhead when exporting across a network. For SDK configurations you control, useBatchSpanProcessorto batch exports and reduce processing costs. -
Duplicate telemetry: Overlapping agent and manual SDK instrumentation can produce multiple spans for the same operation, increasing telemetry volume and storage costs.
You can reduce overhead by disabling instrumentation for libraries you don’t need and controlling how many traces are exported. Head-based sampling makes its decision at the beginning of a trace, reducing telemetry volume but potentially missing requests that fail later. Tail-based sampling evaluates traces after their spans arrive, allowing you to retain traces based on errors or latency.
Tail-based sampling also introduces operational requirements. All spans belonging to a trace must reach the same Collector instance for the sampling decision. When scaling Collectors horizontally, use trace-ID-aware load balancing to keep related spans together. Sampling reduces export and processing volume, but it doesn’t eliminate the overhead of instrumenting application operations.
eBPF as an out-of-process alternative
eBPF-based instrumentation uses probes to observe supported application and network operations without modifying application code or injecting language agents. Unlike the OpenTelemetry Operator’s language-agent approach, it doesn’t require per-workload instrumentation annotations or application restarts. This makes it useful for third-party images, workloads that teams cannot modify, and clusters where injecting language agents isn’t an option.
OpenTelemetry’s eBPF-based instrumentation (OBI) collects supported application telemetry without modifying application code, but it has limitations around custom spans and context propagation:
- Requirements: OBI runs on Linux kernel 5.8+ (or RHEL-family 4.18+ with backports) with BTF, and needs root or specific capabilities. It supports only amd64 and arm64.
- Span depth: OBI captures only what it can observe from application executables and the OS networking layer, so application-internal spans and custom business attributes are out of reach. Keep SDK instrumentation where you already have it.
- Context propagation: OpenTelemetry’s eBPF-based instrumentation (OBI) can read incoming trace context, but outgoing network-level propagation is disabled by default. You must explicitly enable a supported propagation mode, such as
OTEL_EBPF_BPF_CONTEXT_PROPAGATION=all, where appropriate. Network-level propagation has limitations: proxies and Layer 7 load balancers can disrupt TCP-level propagation, while encrypted traffic and unsupported protocols may prevent complete trace correlation.
groundcover uses an eBPF sensor deployed as a Kubernetes DaemonSet to collect supported application and network telemetry without injecting agents into application containers. It combines this telemetry with logs, Kubernetes metadata, and events for full-stack observability. The sensor supports Kubernetes 1.21+ and requires a Linux kernel 5.3+ with BTF/CO-RE support and the necessary privileged permissions.
groundcover can also ingest existing OpenTelemetry traces, metrics, and logs through an authenticated OTLP/HTTP exporter connected to its BYOC ingestion endpoint. You can combine eBPF-collected telemetry with existing OpenTelemetry instrumentation to retain custom application spans alongside the signals collected by the sensor. This provides visibility into supported workloads without losing the application-specific details that require SDK instrumentation.
If you want to validate the architecture on your own cluster, the free plan includes BYOC (Bring Your Own Cloud), where your data plane runs in your own cloud account) and requires no credit card.
FAQs
Open the Jaeger UI at http://localhost:16686, select your service, and search within the time range of your test requests. “Failed to export spans” means the exporter couldn’t deliver traces to its destination. Check the endpoint, network connectivity, TLS settings, and protocol: OTLP/gRPC uses port 4317, while OTLP/HTTP uses 4318.
Auto-instrumentation increases CPU usage by intercepting application operations, creating spans, and processing telemetry. It also consumes memory for instrumentation libraries, active spans, and export buffers. There is no fixed percentage or memory footprint because overhead varies by runtime, workload, and instrumentation configuration. Measure the additional CPU and memory consumption under the same workload before and after enabling instrumentation.
Auto-instrumentation uses different techniques depending on the language and runtime. Java agents manipulate bytecode to instrument supported classes, while Python uses monkey patching and Node.js uses runtime hooks to intercept library operations. eBPF uses kernel and user-space probes to capture supported operations without modifying applications. Compile-time instrumentation rewrites supported Go code during compilation, requiring a rebuild but no manual tracing code.
No. Jaeger’s native clients were retired, and legacy Jaeger-specific exporters have been deprecated or removed from current OpenTelemetry distributions. Use OpenTelemetry instrumentation with OTLP/gRPC on port 4317 or OTLP/HTTP on 4318, rather than the legacy Jaeger Protobuf/gRPC endpoint on 14250. Jaeger retains legacy ingestion support for compatibility.
Yes. groundcover uses eBPF to collect supported Kubernetes workload telemetry without Jaeger or injected language agents. It also ingests existing OpenTelemetry traces, metrics, and logs, allowing you to combine automatically collected telemetry with custom application spans in the same platform.





