Zero-code vs manual OpenTelemetry instrumentation

How much OpenTelemetry instrumentation to get from agents and eBPF versus SDK code, what each approach covers, what it costs to run, and a staged plan that starts zero-code.

On this page

Zero-code vs manual OpenTelemetry instrumentation: which to start with

If your teams need traces and metrics quickly across mixed services, start zero-code for service edges and framework coverage, and add manual code only where you need business spans and attributes that no agent can infer. Agents and eBPF tooling give you request-level telemetry for frameworks and libraries they support without touching application source, which is the fastest route to a first useful picture. Manual SDK code is the place to add the business context that only your application knows, such as which customer tier, order type or workflow step a request belongs to.

OpenTelemetry is an observability framework and toolkit for generating, exporting and collecting telemetry such as traces, metrics and logs, and it is vendor- and tool-agnostic. It is not an observability backend, so you still need separate storage and visualization tools for the data it produces. Whichever mix you choose, the same data flows through the OpenTelemetry Collector, which receives, processes and exports telemetry from both agent-generated and hand-written spans.

Maturity differs by signal and language, so check before you commit. Trace APIs and SDKs are stable in most languages, including C++, .NET, Go, Java, JavaScript, PHP, Python, Ruby and Swift. Log SDK maturity varies more, with several languages still in development, so confirm the status of your languages on the OpenTelemetry status page before planning log export from code. Also confirm the stability of each Collector component you plan to use, since those are documented per component.

Which instrumentation approach fits which service

This table compares zero-code agents, eBPF tracing, manual SDK instrumentation and a hybrid across what each captures, what it misses, language dependence and fit. Read each row against the services you run, then start with the cheapest option that covers your service edges. The main takeaway is that zero-code gives broad coverage fast, while business context still requires code.

ApproachWhat it captures and missesLanguage or runtime dependenceWhen it fits
Zero-code agentsCaptures inbound and outbound HTTP, database and common client library calls without code changes. Misses business operations, custom attributes and internal logic that no library call marks.Depends on runtime support. Agents exist for Java, .NET, Python and Node.js, each covered on a sibling page. Support varies by framework version.Fits most services in agent-supported runtimes, especially as the first stage for broad coverage at service edges.
eBPF-based tracingObserves network and kernel-level calls from outside the process, so it needs no application changes. Misses application-level span names, business attributes and detail inside the function.Depends on kernel and host support, and often needs elevated privileges. Useful where bytecode agents do not exist, such as many Go services.Fits compiled services with no agent path, or where the platform team must avoid touching application builds. Confirm kernel and privilege requirements first.
Manual SDK instrumentationCaptures exactly the spans, attributes and events the team writes, including business identifiers and domain steps. Misses everything nobody instrumented, so coverage depends on developer effort.Depends on the SDK maturity for each language. Trace APIs and SDKs are stable in most languages, while log SDK maturity varies.Fits business-critical paths where operators need order IDs, tenant context or decision points that automatic tools cannot infer.
HybridCombines automatic spans at service edges with manual spans for domain logic, so both appear in one trace. Misses little that the two layers cover, but overlapping spans need deliberate naming.Depends on the chosen runtime and on confirming that automatic and manual spans share a trace context in your stack.Fits most production estates: start zero-code, then add manual spans to the handful of operations that matter most to incident response.

What zero-code covers well at service edges

Zero-code agents and eBPF tools are strongest at the boundaries where services talk to each other and to their dependencies. The cards below cover the spans and metrics those boundaries produce, and each one names what to check against the agent's supported library list before you rely on it.

Inbound HTTP and RPC requests

Agents typically create a server span for each incoming HTTP or RPC request, recording the route, method, status and duration. This gives you the request entry point for every trace without touching handlers. Check that your web framework and server versions appear in the agent's supported library list, and confirm how route templates are captured, since raw paths with IDs can inflate span name cardinality. Compare the span names your agent produces against your API routes in a staging environment before rollout.

OpenTelemetry overview

Outbound client calls

Agents usually wrap outbound HTTP and RPC clients so each call to another service becomes a client span linked to the parent request. This is what stitches service-to-service paths together in a trace. Verify that the HTTP client libraries your services use are covered, including any custom retry or connection pool wrappers, which can hide the call from automatic detection. Confirm that propagation headers are sent on outbound calls so downstream services join the same trace.

Database and messaging client spans

Driver-level instrumentation records database queries and message publish or consume operations as child spans, which shows where latency sits inside a request. Check the database drivers, ORMs and messaging clients in use against the agent's list, because ORM-level and driver-level coverage differ. Review whether query text is captured and whether it contains literal values, since that can put personal or regulated data into telemetry. Adjust the setting or add a redaction step before the data leaves the service.

Runtime and process metrics

Many agents also emit runtime metrics such as garbage collection, thread or event loop state, memory and connection pool usage. These explain latency that traces alone cannot, and they arrive without any code change. Confirm which metric names and units the agent emits for your runtime version, and whether they follow current semantic conventions. Plan for metric volume early, because enabling every runtime instrument can add series you then pay to store.

Why business spans and attributes still need code

Agents see calls and timings, but not what the calls mean. A zero-code agent or eBPF probe can show that an HTTP request to the pricing service took 420 milliseconds and returned a 200, but it cannot know that the request priced a enterprise-tier order for tenant 4821, or that the discount engine chose the manual review path. Those details live in your application code, so they only reach telemetry when a developer writes them there. The practical test is simple: pick the five questions your support, finance or fraud teams ask during an incident, and check whether the current traces can answer any of them without a log search.

Manual instrumentation closes that gap with three tools. A manual span wraps a business operation such as checkout.authorize_payment, so the operation appears as a named step in the trace. Span attributes carry identifiers and categories such as order.tier or decision.outcome on the span, and span events record a notable moment inside it, such as a fallback to a secondary provider. Each attribute needs an owner and a written reason. High-cardinality values like raw customer IDs make queries expensive in many backends, so teams should decide which identifiers are needed for debugging and which should be hashed or left out.

Every attribute added in code is also a potential leak. Names, email addresses, account numbers, health or card data can end up in span attributes and then in every backend that stores them. Plan a redaction step before export, and use the Collector's redaction processor as the control to confirm in your environment, not as a guarantee. Test it with known sensitive values in a non-production pipeline, check that the processor's allowlist or blocklist covers the attribute keys your developers actually use, and review the OpenTelemetry Collector security best practices for the wider configuration controls. Assign an owner for the attribute catalog so new fields pass review before they reach production.

How to roll out a zero-code first plan

This sequence moves a team from an unknown estate to automatic traces across services with a measured overhead baseline, then adds the business spans that only code can express. Each step closes with a check so the next one starts from verified ground.

  1. Inventory services, runtimes and edges

    The platform owner and service owners list every service in scope, its language and runtime version, how it is deployed, and what sits at its edges: ingress gateways, message brokers, databases, and outbound calls to third parties. Record which services already have a monitoring agent, because two bytecode or native agents can conflict. Confirm each runtime against the supported-library lists in the language instrumentation docs. The step is done when every service has a row in a shared inventory with its runtime, owner, and existing agents, and the team agrees on which services are first in line.

  2. Deploy the Collector as agent or gateway

    The platform team deploys the OpenTelemetry Collector in the pattern that fits the estate: an agent beside workloads, a gateway that receives data from many sources, or both. Build or pin a distribution that includes only the components the pipeline needs, and bind receivers to addresses you intend to expose, since server components bind to localhost by default in recent versions. Confirm the chosen backend endpoint and its credentials are stored outside the configuration file. The step is done when a test span sent from a sample client reaches the Collector and is exported without errors in the Collector's own logs.

  3. Enable agents in a non-production environment

    Service owners attach the language agent or enable the auto-instrumentation package in a non-production environment, pointing exporters at the Collector through environment variables. Start with a small set of services that represent different runtimes and edge types, and leave noisy instrumentations disabled until they are reviewed. Keep application code unchanged in this step so any regression can be traced to the agent alone. The step is done when each pilot service emits server spans for inbound requests and client spans for its outbound calls in the test environment.

  4. Verify spans reach the chosen backend

    The team opens the chosen backend and searches for the pilot services, checking that service names, resource attributes, and span hierarchies look as expected. Confirm that trace context propagates across service boundaries, meaning a request that enters one service and calls a second one appears as a single trace with the parent-child link intact, including through the message broker or gateway in the path. Check that sensitive values such as query parameters and headers are not captured by default. The step is done when at least one end-to-end request across two or more services shows as one trace in the backend.

  5. Measure overhead against a baseline

    Before the rollout, the performance owner records latency, throughput, CPU, and memory for each pilot service under a representative load, using the same test harness after the agent is enabled. Compare the two sets of results and note where the difference exceeds what the service owners accept. Repeat the comparison with the Collector's own resource use included, since it runs on the same hosts or in the same cluster. The step is done when the team has a written baseline and comparison for each pilot, and has decided whether to proceed, tune the instrumentation, or change the export configuration. Ask your vendor or the agent documentation for the expected overhead profile of your runtime rather than assuming it.

  6. Promote agents to production in waves

    Service owners promote the validated agent configuration to production one group at a time, starting with services that have the lowest risk and clear owners. Each wave uses the same configuration and checks as the pilot, and the Collector's dropped-data and exporter failure signals are watched during the change window. Keep a rollback path that removes the agent setting without a code change. The step is done when each wave has a verified trace for its services, no unexplained rise in error rates or latency, and an owner who can name the rollback steps.

  7. Add manual spans for named business transactions

    Once automatic traces cover the edges, developers add manual spans for named business transactions such as checkout, loan application, or claim submission. Use the API the language SDK exposes and attach business attributes that automatic instrumentation cannot know, such as product tier or workflow stage, after reviewing them against the data-handling policy. Keep attribute names consistent with the semantic conventions the team has agreed on. The step is done when each named transaction appears as one searchable span or trace in the backend, and a reviewer has confirmed that no regulated identifiers were added as attributes.

  8. Review coverage and gaps quarterly

    The platform team reviews which services still lack traces, which agents have been updated, and which manual spans have stopped firing after code changes, then records the gaps in the same inventory used at the start. Decide which gaps need a code change, a different instrumentation method, or a documented exception. Confirm that the Collector and agent versions in use are still supported by their release channels. The step is done when the inventory shows an owner, status, and next action for every service, and the team has agreed on what is covered by zero-code and what is covered by manual code.

How the zero-code and manual decision flows from inventory to backend

The flow starts with a service inventory that records language, runtime and deployment for each service. The first decision asks whether a supported agent or eBPF option exists for that runtime; if not, the team plans SDK work. The second decision asks whether the service needs business context, such as tenant or order attributes, that only code can add. Both paths meet at an OpenTelemetry Collector, which sends data to a backend chosen separately. Check each branch against the language support status for your own versions before you commit.

Decision path from service inventory through instrumentation choice to the Collector and backend.

Security and operational risks of agents in production

Zero-code agents and Collector endpoints add privileges, data paths and network exposure that your team has to own after go-live. The cards below cover the risks we see most often and the checks to run before each one reaches production.

Elevated privileges for agents on hosts

Java agents, eBPF tools and other zero-code instrumentation run inside or beside your processes, and eBPF tracing usually needs elevated kernel privileges on the host. Before rollout, list which hosts get an agent, which service account runs it, and who can change its configuration. Treat the agent as privileged software in your patching and change control, and confirm the required capabilities with the agent's own documentation for your kernel and runtime.

Sensitive values in span attributes

Automatic instrumentation records URLs, query strings, headers and database statements by default, and those can carry tokens, personal data or card numbers. Review what each enabled library captures in a staging environment, then remove or hash fields before export. The redaction processor in the Collector is the supplied control for stripping sensitive attributes centrally, but it only protects data that passes through the Collector.

Collector security guidance

Collector endpoints bound beyond localhost

Since Collector v0.110.0, server components bind to localhost by default rather than 0.0.0.0. Any override in your configuration that moves receivers to a routable interface exposes telemetry ingestion to the network. Check the bind address of every receiver in each environment, restrict reachability with network policy or firewall rules, and confirm the effective configuration on running instances rather than trusting the source file.

Authentication on receivers

Receivers accept telemetry from any sender that can reach them unless you add authentication. Collector authenticator extensions can validate incoming connections, for example with OIDC, and the oauth2client extension can attach credentials to outgoing exporter requests. Decide which senders are trusted, how their identities are issued and rotated, and where Collector configuration and secrets are stored and encrypted.

Collector configuration docs

Minimal builds and current agent versions

A custom Collector built with only the components you need has less code to patch and fewer exposed endpoints. Keep the Collector, language agents and SDKs on a tested release cadence, and check each release's changelog for security fixes and component stability changes. Releases ship signed artifacts, SHA256 checksums and SBOM files, so verify those during deployment and record which build runs in each environment.

Collector release notes

Questions teams ask before hiring help with instrumentation

How much effort does a zero-code OpenTelemetry rollout take?

Effort depends mostly on how many services you run, how many languages and runtimes they use, and how much of the estate is already monitored by another agent. Zero-code attachment is usually the quickest step, but each service still needs its startup configuration, exporter endpoint, resource attributes and a check that spans arrive in your backend. Ask any partner to break the work down per language and per environment, and to state which items are included in a fixed scope and which are optional extras. Confirm the supported libraries for each runtime in the official documentation before you count on them.

Can our team run the staged plan without outside help?

Yes, many teams can start zero-code on their own if they have people who can operate the runtime, change deployment manifests and read traces. The harder parts are usually the Collector pipeline design, consistent naming and resource attributes across teams, and deciding which spans need manual code later. Outside help tends to pay off when several teams must adopt the same conventions quickly or when security reviews require evidence of how data leaves the services. Assess your own skills against each stage before deciding.

What does a partner need from us to scope instrumentation work?

A partner needs an inventory of services with their languages, runtime versions, deployment platform and owning team, plus the current monitoring tools already attached to them. It also helps to have the target telemetry backends, the network paths from services to the Collector, and any data handling rules that apply to traces, logs and attributes. Access to a non-production environment for testing is usually required. Ask for a written list of what the client must provide and by when, because gaps here are a common cause of schedule slippage.

How is instrumentation overhead checked before a wider rollout?

Overhead is checked by comparing a service's latency, CPU, memory and error behavior with and without the agent under a realistic load test in a non-production environment, then watching the same signals after rollout. Measure at the sampling rate and with the exporters you plan to run in production, because both change the result. Also check the Collector's own resource use and whether it drops data under load. Ask any partner for the test plan, the metrics they will compare and the thresholds that would stop a rollout.

Can we add manual spans later without reworking the zero-code setup?

Generally yes, because the SDK API is designed to work alongside automatic instrumentation, so business spans and attributes can be added in code later and appear in the same traces. The rework risk comes from naming choices, attribute keys and where the Collector applies processing rules. Agree on attribute naming and the semantic conventions you follow before adding code, and keep sensitive values out of span attributes from the start. Confirm the exact combination for each language with its documentation, since support differs by runtime.

How do we choose between an agent, eBPF and SDK code for a service?

Start with the runtime. Where a language agent exists and is supported for your framework, a zero-code agent gives the broadest coverage at service edges with the least code change. Where no agent exists, such as some compiled services, eBPF or compile-time instrumentation may be the next option, but confirm its coverage and privileges with your platform team. Add SDK code where you need business spans, custom attributes or domain logic that only your code knows. Record the decision per service so reviewers can see why each approach was chosen.

What security questions should we settle before an agent goes into production?

Settle where agents get their configuration, which credentials they use to reach the Collector, and which attributes or payloads could carry personal or regulated data. Collector guidance recommends storing configuration securely, using encryption and authentication on receivers and exporters, building only the components you need and removing sensitive attributes with the redaction processor. Confirm with your security team how each runtime's agent is installed and updated, since that affects your change control.

How DeployOpen scopes this work in a fixed-scope engagement

DeployOpen plans, implements and documents OpenTelemetry pipelines inside your own infrastructure, including the cloud accounts, data centers or air-gapped networks you control. For a zero-code versus manual decision, that means the scope covers which services get agents or eBPF instrumentation, which get SDK code for business spans and attributes, the Collector pipelines that receive the data, and the runbooks your team inherits. Most engagements are fixed-scope: the service list, deliverables and timelines are agreed in writing before work starts, so the boundary between agent-based coverage and custom code is settled on paper rather than discovered during the build.

A quote follows from the written scope. DeployOpen does not publish a price list, so the useful preparation happens on your side: an inventory of services by language and runtime, the instrumentation approach proposed for each, the backends that will receive data, and the environments that need separate rollouts such as production and regulated networks. Ask the quote to show one-time work (assessment, Collector build, instrumentation of the first wave, documentation and verification) separately from recurring work. Confirm whether the quote covers the Collector configuration review against the OpenTelemetry Collector configuration docs and who owns each component after handover.

Ongoing support is available as a retainer for work that continues after the initial rollout, such as adding services as they ship, reviewing agent versions when the Collector and language agents are updated, and tuning which automatic instrumentations stay enabled. Ask for the retainer terms in writing, including response expectations and what is excluded, and decide whether your own team or the retainer will own the staged expansion from zero-code coverage to business spans.

How DeployOpen approaches instrumentation strategy

DeployOpen plans, builds and hands over OpenTelemetry instrumentation inside your own infrastructure, so the mix of zero-code agents, eBPF and SDK code is chosen per service rather than by default. The work starts from what your teams need to see and what each runtime supports today.

How we scope

  • Inventory services, runtimes, deployment targets and the telemetry questions your teams must answer
  • Map which service edges zero-code agents can cover and which business spans need SDK code
  • Agree the scope, deliverables and timelines in writing before work starts, as most engagements are fixed-scope

How we build

  • Roll out zero-code instrumentation first on a pilot set of services, then measure overhead and data quality
  • Add manual spans and attributes only where business context and custom logic need them, with a documented naming standard
  • Route telemetry through a Collector configuration with secured endpoints, redaction of sensitive attributes and only the components the pipeline needs

How we hand over

  • Document which services use agents, eBPF or SDK code, with versions, configuration keys and environment variables
  • Provide a verification checklist that confirms traces, metrics and logs arrive with the expected service and resource attributes
  • Walk your engineers through how to add instrumentation to a new service and how to review the coverage gaps that remain

How we support

  • Review agent and SDK upgrades against release notes, since signal maturity differs by language
  • Offer ongoing support, upgrades and continuous testing as a retainer after handover
  • Confirm with your vendors and standards bodies any capability that your environment depends on before relying on it

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.