What OpenSearch with OpenTelemetry trace analytics connects
A platform or SRE team that wants service maps and spans in OpenSearch Dashboards without buying a proprietary tracing backend needs to understand that OpenTelemetry does not store or display traces. OpenTelemetry is an observability framework that generates, exports and collects telemetry such as traces, metrics and logs. Storage and visualization are left to separate tools. In this design, your applications produce spans through OpenTelemetry SDKs, the OpenTelemetry Collector receives and processes them, and OpenSearch is the storage and viewing layer. The trace analytics views in OpenSearch Dashboards depend on how the spans arrive in OpenSearch, so the pipeline must produce the index structure those views expect.
Data Prepper is OpenSearch's ingestion tooling for trace data. It sits between the Collector and the cluster, receiving span data, shaping it and writing it into OpenSearch indexes that Dashboards reads. Each piece has its own configuration, its own version and its own support status, so the boundary between them is where most early problems appear. Before building, confirm the exact export path (which Collector exporter or protocol hands spans to Data Prepper, and which Data Prepper pipeline writes to the cluster) against the Data Prepper and Collector documentation for the versions you choose. Do not assume a path from a blog post or an older example, because Collector components have mixed stability levels and their configuration keys change between releases.
Decide early which team owns each hop: application instrumentation, the Collector configuration, the Data Prepper pipeline, and the OpenSearch indexes and retention. Confirm which Dashboards version provides the trace analytics pages you need, and test the full path with one non-production service before onboarding others. Plan for authentication between the Collector and Data Prepper and between Data Prepper and the cluster, since span data often includes request metadata that your security team will want controlled through the same access model as the rest of the cluster.
How spans move from services to OpenSearch Dashboards
The path starts with instrumented services exporting OTLP traces to an OpenTelemetry Collector, which runs either as an agent beside each workload or as a gateway that accepts data from many sources. The Collector hands traces to Data Prepper, which builds the trace documents that OpenSearch stores in its trace indexes, and Dashboards reads those indexes to draw service maps and spans. Check each boundary: the authenticator and TLS points on the Collector receiver and exporter, the Data Prepper pipeline credentials, and the role mapping that lets Dashboards read the trace indexes.
Trace flow from services through the Collector and Data Prepper into OpenSearch.
What you need in place before the first span arrives
Trace analytics fails quietly when one tier is missing or mismatched, so each prerequisite below should be settled before any service sends telemetry. The six items cover the storage cluster, the viewer, the Collector, the instrumented services, the network path between them, and the people who own the data.
Self-hosted OpenSearch with Security enabled
Start with a self-managed cluster on an OpenSearch version that is still in maintenance, with the Security plugin active before any trace data is written. Confirm the version against the release and maintenance schedule, since only bug fixes and security patches arrive once a version leaves active development. Decide the identity backend (SAML, OpenID Connect, LDAP or another supported option) and the roles that will write spans and read them, so ingestion credentials are not shared with analysts.
- Minimum maintenance window
- 1 year
OpenSearch Dashboards with trace analytics
Dashboards is the viewer for service maps and span lists, and it must run at the same OpenSearch version as the cluster so the trace analytics views match the indexes they read. Confirm that the trace analytics plugin is installed and that analysts can reach it through the same SSO path as the cluster. Plan tenant or role access in Dashboards so that a team only sees the services it owns.
A tested OpenTelemetry Collector release
Pin one Collector release in a staging environment before rollout, and pick the contrib distribution only if your pipeline needs components outside the core build. The project publishes signed artifacts, SHA256 checksums and SBOM files, so verify each download and record the hashes in your change process. Test the exporter path with a sample trace before you change any production agent or gateway.
Collector releasesInstrumented services on stable SDKs
Trace SDKs are stable in most languages, including Go, Java, JavaScript, .NET, Python and Ruby, so confirm your services use one of them at a version you have tested. Review how each service names itself and its operations, because service maps group nodes by those names. Log SDK maturity varies more, so if logs are part of the same plan, check each language's status before you depend on it.
OpenTelemetry status pageNetwork paths and TLS between tiers
Map every hop from services to Collector, from Collector to the OpenSearch ingest endpoint, and from analysts to Dashboards, then open only those ports. Issue certificates from an internal CA that each tier trusts, and set a rotation date for each one. Where the Collector accepts incoming connections, plan authentication on the receiver side, and where it sends data, plan credentials on the exporter side.
Collector security practicesA named owner for index retention
Name one person or team who decides how long span indexes are kept, who approves changes, and who answers when storage fills. Trace volume grows with traffic and instrumentation depth, so the retention rule should be written before the first index is created, not after the disk warning. Ask the owner to confirm how spans are deleted or rolled over, and to check the policy against your audit and records requirements.
How the Collector and Data Prepper split the work
The OpenTelemetry Collector and Data Prepper do different jobs, and the split decides where authentication, batching and index shaping happen. The Collector receives, processes and exports telemetry. It is vendor-agnostic and can run as an agent beside each service, or as a gateway that accepts data from many sources in one place. Data Prepper sits on the OpenSearch side and shapes trace data into the indexes that OpenSearch Dashboards reads, including the trace and service map views. Neither component replaces the other in this design: the Collector moves and conditions the spans, and Data Prepper turns them into the documents the trace analytics screens expect.
The main trade-off is how many hops and components you run. Sending spans from services to Data Prepper with no intermediate Collector gives you fewer moving parts and a shorter path to the index, which suits a small or single-team estate. A central Collector tier costs more to operate, but it gives you one place to add authentication on receivers with the Collector's authenticator extensions, to attach credentials on outgoing exports, to batch and retry, and to change exporters without touching every application. Decide which of these controls you need before you choose the topology, since moving them later means reconfiguring every service.
Do not assume a specific exporter name or receiver setting from memory. The component names, configuration keys and the way Data Prepper accepts OpenTelemetry trace data change between releases, and the Collector's components carry mixed stability levels. Check the current Collector release notes and the Data Prepper documentation for the exact versions you plan to run, then confirm each pipeline in a non-production environment. Write down which component owns each responsibility, so that your security review and your on-call team can trace a missing span to a single hop.
Choosing an agent, gateway or direct path
Run a Collector on every host or as a sidecar next to each service. Services send telemetry to a local endpoint, which keeps network hops short and lets the Collector buffer briefly if the backend slows down. This pattern suits hosts with unreliable links to the central tier and teams that want each node to handle its own enrichment, such as adding host or resource attributes.
- Operations load: every node runs another process to version, configure, patch and monitor, so fleet size drives the work.
- Authentication: each agent needs its own credentials for the exporter, and rotating them touches every host. Confirm how your secrets store delivers them.
- Back pressure: a slow OpenSearch path pushes pressure into each agent's memory queue, so size queues per node and test what happens when they fill.
- Configuration drift: per-node settings can diverge over time. Keep one pipeline definition under version control.
- Checks before choosing: count the hosts, confirm the OpenTelemetry Collector configuration best practices apply to your setup, and verify the Collector distribution you plan to use includes the exporter you need.
Confirm the trace source options in the current Data Prepper documentation before you commit to a topology.
Run a small pool of Collectors as a gateway that accepts telemetry from many services and exports to the backend. Applications point at one shared endpoint, so changes to routing, sampling or credentials happen in one place. This pattern suits organizations with many services, centralized platform teams and a need to control what leaves the network.
- Operations load: fewer instances to manage, but the gateway becomes a critical service that needs its own scaling, health checks and upgrades.
- Authentication: the gateway can authenticate incoming connections with an authenticator extension, such as OIDC, and attach credentials to outgoing exporter requests, so applications do not hold backend secrets.
- Back pressure: a single gateway concentrates the queue. Plan memory limits, horizontal scaling and load balancing so one slow backend does not block every producer.
- Network exposure: the gateway is a single ingress point, which simplifies firewall rules but needs TLS and receiver authentication enabled.
- Checks before choosing: load test with realistic span volume, confirm which receivers and exporters your distribution includes, and review the Collector configuration docs for authenticator extensions.
Confirm the trace source options in the current Data Prepper documentation before you commit to a topology.
Services send traces to Data Prepper's trace source, and a Collector is used only where processing or fan-out is needed. This path removes one component from the trace flow when your application stack already emits data Data Prepper accepts. It fits teams that want OpenSearch-native pipelines and fewer moving parts in the trace path.
- Operations load: fewer processes in the trace path, but Data Prepper pipelines need their own sizing, monitoring and version management.
- Authentication: credentials and TLS settings depend on the Data Prepper source configuration, so each producer must be set up to match. Confirm supported options in the current documentation.
- Back pressure: Data Prepper buffers and processors determine how load is absorbed. Test how producers behave when the pipeline slows, and whether they retry or drop data.
- Processing limits: transformations that a Collector would handle, such as attribute enrichment or sampling, may need to move into Data Prepper or into the application.
- Checks before choosing: confirm the trace source and the OpenTelemetry data format your services emit are supported, and test with a sample service before rollout.
Confirm the trace source options in the current Data Prepper documentation before you commit to a topology.
Setting up OpenTelemetry trace analytics in OpenSearch step by step
This sequence takes a team from version checks to a verified trace path, in which a known test trace moves from an instrumented service through the Collector and Data Prepper into OpenSearch and appears in Dashboards before the rest of the estate is onboarded.
Confirm versions and the trace pipeline
Before installing anything, record the OpenSearch, OpenSearch Dashboards, Data Prepper and OpenTelemetry Collector versions you intend to run, and confirm in the Data Prepper documentation for your OpenSearch release that the OpenTelemetry trace source and trace-analytics index pattern are supported. Check the OpenSearch releases page for the maintenance status of your chosen version, since the Collector ships new releases frequently. Done when the team has a written version matrix signed off by the platform owner and no open questions about pipeline support.
Provision roles and a service identity
Create a dedicated service identity for the pipeline, with a role that allows writes to the trace indexes and the index templates they need, and nothing broader. Map that identity through the OpenSearch Security plugin, using the same backend your administrators use, and keep Dashboards read access on a separate role for analysts. Confirm that TLS is enabled for node and client traffic before any credentials are issued. Done when a test authentication with the service identity succeeds and a write to a scratch index is allowed while a write to a system index is denied.
Deploy the Collector with a pinned release
Deploy the OpenTelemetry Collector contrib distribution at a pinned version, verifying the signed artifact, SHA256 checksum and SBOM for that release before use. Start with an agent or gateway configuration that declares only the receivers and exporters your team has tested, and secure the OTLP receiver with an authenticator extension if callers come from outside the trust boundary. Review the stability level of each component in its README before relying on it. Done when the Collector health check responds and its logs show a clean startup with no unused or failing components.
Configure Data Prepper with trace source and sink
Configure a Data Prepper trace pipeline with an OpenTelemetry trace source that receives from the Collector, and an OpenSearch sink that points at your cluster using the service identity from the earlier step. Store credentials in the secrets mechanism your platform already uses rather than in plain configuration files. Start Data Prepper and confirm that the pipeline reports running with no authentication or mapping errors. Done when the Data Prepper health endpoint reports healthy and the sink accepts a first batch without errors in the cluster logs.
Send a known trace from one service
Instrument one non-production test service with the OpenTelemetry SDK for its language, and set a service name that is easy to search for. Generate a request with a known trace ID, either by setting the ID explicitly through your SDK or by recording the ID the SDK returns. Send the request through the Collector to Data Prepper. Done when the team can point to that exact trace ID in the logs of the service, the Collector and Data Prepper, confirming each hop carried the span.
Confirm the index and service map
In OpenSearch Dashboards, open trace analytics and search for the known trace ID and service name. Verify that the span tree, durations and status codes match what the test service produced, and that the service map shows the expected nodes and edges. Also check the index list in the cluster to confirm the trace and service map indexes were created under the names your templates define. Done when the known trace is visible in Dashboards with correct parent and child relationships and the service map renders without missing services.
Add remaining services and set retention
Instrument the remaining services one group at a time, confirming each group's traces appear in Dashboards before adding the next. Define a retention policy for the trace and service map indexes using index state management, and agree sizing with the cluster owner based on observed span volume and storage headroom. Document the sampling configuration in the Collector so volume changes are deliberate. Done when every in-scope service appears in the service map, the retention policy is applied to the trace indexes, and a rollover or deletion test has completed on a non-production index.
How OpenTelemetry trace fields land in OpenSearch
This table compares each core OpenTelemetry trace concept with where it is expected to appear in OpenSearch after Data Prepper processes it, and what the team should verify. Field names and index layout depend on the Data Prepper version, so confirm every row on a test index before building dashboards, alerts or retention rules on top of them.
| OpenTelemetry concept | Expected location in OpenSearch trace data | What the team must verify |
|---|---|---|
| Trace ID | Trace identifier field on each span document, used to group spans into one trace | Confirm the field name and format for the Data Prepper version in use, and that all spans from one request share the same value |
| Span ID | Unique span identifier field on each span document | Confirm uniqueness across services and that the field is indexed as a keyword for lookups |
| Parent span ID | Field linking a child span to its parent, used to rebuild the span tree | Check that root spans are empty or null here and that parent links survive across service boundaries |
| Span name | Operation name field, shown in the trace view and used for filtering | Confirm that names from different instrumentation libraries are consistent enough to filter on |
| Span kind | Field indicating client, server, producer, consumer or internal spans | Check that service map edges are built from client and server spans as expected |
| Start time and duration | Start timestamp and duration or end time fields used for latency views and time filters | Confirm the time zone and precision, and that duration units match what dashboards assume |
| Status | Status code and optional status message on each span | Check that error spans are marked so error views and alerts pick them up |
| Service name from resource attributes | Service name is copied from resource attributes into a field used for service maps and filters | Confirm the attribute is set by every instrumented service and that naming is consistent across environments |
| Custom attributes | Span and resource attributes are stored as nested or flattened fields, with names that can change with mapping | Confirm field types on a test index, watch for mapping conflicts from high-cardinality values, and plan field limits before rollout |
Securing the trace pipeline and the data in it
A trace pipeline crosses several components, and each one can expose data or accept traffic it should not. The cards below cover the controls to plan across the Collector, Data Prepper and the OpenSearch cluster, along with the span data that flows through them.
Limit who can read trace indexes
Trace indexes hold service names, operation names, timings and error details for every request path. Define OpenSearch Security roles that grant read access only to the indexes and Dashboards views a team needs, and keep write permissions for the Data Prepper pipeline user alone. Map identity provider groups to these roles so access follows your existing directory. Confirm which index patterns your Data Prepper version writes to before you write the role definitions.
OpenSearch security docsCheck document and field controls for spans
OpenSearch Security supports document-level and field-level security and field masking. Test whether these fit trace data before relying on them: a role that hides a field may still leave the same value visible in a trace ID search, a service map or an aggregation. Run a sample query as a restricted user and confirm which attributes are returned, masked or missing.
Encrypt every hop with TLS
Traces move from application SDKs to the Collector, from the Collector to Data Prepper, and from Data Prepper to the cluster. Enable TLS on each connection and decide who issues and rotates the certificates for each component. Verify that the cluster rejects plaintext clients and that the Collector and Data Prepper validate the server certificate rather than skipping verification. Record the certificate owner and renewal date for each hop.
Authenticate receivers and exporters
Collector authenticator extensions can check the identity of clients that send telemetry, for example with OIDC, and can attach credentials to outgoing exporter requests, for example with the oauth2client extension. Decide which services may send traces and how their tokens are issued and revoked. Confirm that the extensions you choose support the receiver and exporter types in your configuration, since support varies by component.
Collector configuration docsReduce exposed Collector endpoints
The Collector's receivers listen on network ports, and an open receiver accepts data from anyone who can reach it. Follow the OpenTelemetry configuration best practices to bind receivers to specific interfaces, disable extensions and debug exporters you do not use, and restrict the health and profiling endpoints to internal networks. Review the configuration in version control so changes to listening addresses get the same review as code.
Configuration best practicesTreat span attributes as sensitive
Span attributes often carry user IDs, email addresses, account numbers, request paths and SQL or search query text, depending on how services are instrumented. Review instrumentation libraries for attributes they capture by default, and drop or hash fields in the Collector before export. Set a retention period for trace indexes that matches the sensitivity of this data, and confirm the policy with your privacy and compliance owners.
Why OpenSearch trace analytics shows no spans
This table pairs each symptom a team sees in Dashboards trace analytics with its most likely cause and the check to run first. Read it from the top: the early rows test whether data leaves the Collector, and the later rows test whether it survives the trip into OpenSearch. Most empty views trace back to one broken hop, so work down the chain in order.
| Symptom | Likely cause | Fix and check to run |
|---|---|---|
| No traces in Dashboards | Applications are not exporting, or the Collector exporter points at the wrong endpoint | Check Collector logs for export errors and confirm the exporter endpoint and port. Confirm the application SDK exporter is enabled and sending to the Collector receiver. |
| Traces present but service map empty | Service map needs span kind and peer attributes that the instrumentation did not set | Confirm client and server spans are emitted with the expected span kinds. Compare a sample span in the index against the attributes your Dashboards version expects. |
| Missing parent-child links | Trace context is not propagated across service boundaries, so spans land as separate roots | Check that the propagator is configured the same way on every service. Inspect one trace ID across services to find where the parent span ID is lost. |
| Spans dropped under load | Batch processor or exporter queues fill, or Data Prepper buffers apply backpressure | Review Collector queue and drop metrics and Data Prepper pipeline status for rejected or failed batches. Size buffers and batch settings, then retest with a controlled load. |
| Authentication or TLS errors between tiers | Certificates, CA trust or credentials do not match between the Collector, Data Prepper and OpenSearch | Read the handshake errors in Collector and Data Prepper logs. Confirm the CA bundle, server names and the credentials configured for the OpenSearch user that writes spans. |
| Unexpected index names after a version change | Data Prepper and Dashboards versions expect different index naming or templates than the existing data | List indexes and index templates in the cluster. Confirm the trace index pattern in Dashboards matches the names being written, and check the release notes for both components. |
| Gaps from Collector components with mixed stability | A component used in the pipeline is alpha or beta, and its behavior changed or it drops fields | Check each component's stability level in its README in the contrib distribution. Pin the Collector version, test the pipeline in a non-production environment, and keep only components you have verified. |
Questions teams ask before setting up OpenTelemetry trace analytics
What drives the cost and effort of an OpenTelemetry trace analytics setup?
The effort depends mostly on how many services emit traces, how many languages and frameworks they use, and how much of the telemetry path you control. The main cost components are the people who design and build the pipeline, the infrastructure that runs the Collector, Data Prepper and OpenSearch nodes, and the ongoing work of upgrades and retention management. Instrumentation effort grows with each service team that must add SDK code or configuration. Ask any partner to price these components separately in a written quote, and ask which items are one-time work and which recur, such as upgrades, patching and storage growth.
Can our in-house team set up OpenTelemetry trace analytics on its own?
A capable platform or SRE team can build this without outside help, provided it has people who know Kubernetes or your hosting model, OpenSearch security settings and OpenTelemetry Collector configuration. The hardest parts are usually not the first trace, but the access model, TLS, index retention and the upgrade routine that keeps the pipeline working over time. Check your team's experience with each of these before deciding. A partner can build the pipeline alongside your engineers so the knowledge stays in-house.
How long does a first working trace pipeline usually take?
No duration is fixed for every environment, so treat any single number with caution. The time to a first working pipeline depends on the number of services, whether a test service already exists, how quickly access and sign-off are granted, and whether OpenSearch is already running in your environment. Teams that already operate OpenSearch and Kubernetes usually move faster than teams starting both at once. Ask a partner to state the assumptions behind its timeline and to split the schedule into a first trace, a production-ready pipeline and handover.
What does the work need from our organization?
Plan to provide four things before work starts. First, access to the target clusters, Kubernetes namespaces or hosts, and the OpenSearch cluster, with a named contact who can approve changes. Second, a test service that emits real spans so the pipeline can be checked end to end. Third, retention decisions for trace indexes, including how long spans are kept and who may query them. Fourth, security sign-off on authentication, TLS, roles and the Collector's exposure to other networks. Late decisions in any of these areas are a common cause of delay.
Does OpenSearch trace analytics require a paid edition?
No paid edition is required for the trace analytics setup described here. All software in the OpenSearch project is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition. The OpenTelemetry Collector repository is also licensed under Apache-2.0. Confirm the license of any plugin or distribution you add, and check with your legal team how the license terms apply to your internal use and any redistribution of your build.
How do Collector upgrades affect the trace pipeline?
Collector upgrades can change receiver, processor and exporter behavior, so each upgrade should be tested against a staging pipeline before production. OpenTelemetry Collector releases ship the contrib distribution with signed artifacts, SHA256 checksums and SBOM files, which help with verification. Core components have mixed stability levels, documented in each component's README, so check the stability of every component you use. Pin versions, keep the configuration in version control and agree on a release routine with your partner or internal team.
What should we ask a partner for in a written quote?
Ask for a written scope that lists the services in scope, the Collector deployment model (agent, gateway or both), the Data Prepper pipelines, the OpenSearch cluster details and the Dashboards views to be delivered. Also ask for the assumptions behind the schedule, the access and approvals you must provide, the acceptance tests, the handover materials and what support or upgrade work is priced separately. Request a clear split between one-time build work and any recurring retainer for ongoing support.
How DeployOpen works on this
DeployOpen plans, builds, documents and supports self-hosted OpenSearch with OpenTelemetry trace pipelines inside your own cloud accounts, data centers or air-gapped networks. We agree scope, deliverables and timelines in writing before work starts, so your security, platform and operations teams know what is being built and how it will be run.
How we scope
- Map your services, languages and existing instrumentation to the trace sources the Collector will receive.
- Agree the Collector deployment shape, whether agent next to services, gateway, or both, in the written scope.
- Define retention, index design, cluster sizing inputs and which Dashboards users need access to the trace views.
How we build
- Configure Collector receivers, processors and exporters, with Data Prepper pipelines feeding OpenSearch trace indexes.
- Set up OpenSearch Security roles, TLS and authentication backends so trace data is limited to the teams that need it.
- Test service map and span views in OpenSearch Dashboards against sample traffic from your own environment before cutover.
How we hand over
- Deliver written configuration, pipeline definitions, role mappings and deployment files stored in your repositories.
- Document the verification steps, dashboards checked and known limits of each Collector component, including its stability level.
- Walk your operations team through upgrades, Collector version changes and what to check after each OpenSearch minor release.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover, scoped in writing.
- Review Collector and OpenSearch release notes against your deployed versions and plan upgrades in your change process.
- Confirm with your team which support window, alerting and on-call responsibilities apply before go-live.

