Skip to content

Commit 500350e

Browse files
Expand EDOT data streams comparison to include ECS-based integration streams (#469)
* Expand EDOT data streams comparison * Apply comments
1 parent 29be975 commit 500350e

File tree

1 file changed

+65
-18
lines changed

1 file changed

+65
-18
lines changed

docs/reference/compatibility/data-streams.md

Lines changed: 65 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
navigation_title: Data streams comparison
3-
description: Learn how EDOT optimizes telemetry storage and query performance in Elastic Observability compared to classic APM.
3+
description: Learn how EDOT optimizes telemetry storage and query performance in Elastic Observability compared to classic APM and ECS-based integrations.
44
applies_to:
55
stack:
66
serverless:
@@ -12,9 +12,9 @@ products:
1212
- id: edot-sdk
1313
---
1414

15-
# OpenTelemetry data streams compared to classic APM
15+
# OpenTelemetry data streams compared to classic APM and ECS-based integrations
1616

17-
The Elastic Distribution of OpenTelemetry (EDOT) stores telemetry data using a storage model optimized for OpenTelemetry signals. When `mapping::mode: otel` is enabled on the [Elasticsearch exporter](elastic-agent://reference/edot-collector/components/elasticsearchexporter.md) (which is the default setting), EDOT writes logs, traces, and metrics to specialized data streams aligned with OpenTelemetry semantics.
17+
The {{edot}} (EDOT) stores telemetry data using a storage model optimized for OpenTelemetry signals. When `mapping_mode: otel` is enabled on the {{es}} exporter (which is the default setting), EDOT writes logs, traces, and metrics to specialized data streams aligned with OpenTelemetry specifications.
1818

1919
This architecture is designed for scalable observability workloads. It supports dynamic attributes, reduces mapping complexity, and avoids issues like mapping explosions or manual dimension setup.
2020

@@ -35,7 +35,18 @@ Metric data is stored using Elasticsearch’s [TSDS](docs-content://manage-data/
3535
* Fast aggregations
3636
* Automatic detection of metric dimensions (no need to manually define `time_series_dimension` in field mappings)
3737

38-
## Query compatibility with classic APM data streams
38+
39+
## Comparison with classic APM data streams
40+
41+
This table highlights key differences between classic Elastic APM data streams and EDOT with `mapping_mode: otel`:
42+
43+
| Feature | Classic APM (ECS-based) | EDOT (`mapping_mode: otel`) |
44+
|---|---|---|
45+
| Index mode | General-purpose data streams (logs, traces, metrics) <br><br> TSDS is not supported for classic APM. | LogsDB (logs/traces), TSDS (metrics) |
46+
| Mapping style | Nested objects are mapped as structured fields. Some exceptions exist, such as `labels.*` and `numeric_labels.*`, where dots in field names are replaced with underscores. <br><br> ECS supports multiple field types (keyword, long, double, date, boolean, and so on) as defined in the schema. | Native OpenTelemetry fields with `passthrough`, preserving types and structure. |
47+
| Attribute handling | Dynamic mapping. Custom attributes are stored under `labels.*` (strings) or `numeric_labels.*` (numbers); dots in field names are replaced with underscores. <br><br> See [Document examples - classic APM](#classic-apm) | Dynamic mapping with native types under `attributes.*`, preserving dots in field names. <br><br> See [Document examples - EDOT](#edot) |
48+
49+
### Query compatibility with classic APM data streams
3950

4051
EDOT is designed to make OpenTelemetry data queryable using many of the same field names as classic APM (ECS-based) data streams. This helps preserve compatibility with existing dashboards, saved searches, and queries.
4152

@@ -44,7 +55,7 @@ Query compatibility is achieved through:
4455
* **`passthrough` fields:** Make nested OpenTelemetry fields available at the top level so they can be queried. For example, while the service name is stored at `resource.attributes.service.name`, you can query it as `service.name` (the same field name as the one used in the classic APM data stream).
4556
* **Field aliases:** Map fields with different names in ECS and OpenTelemetry semantic conventions to a common query name to make migration easier.
4657

47-
### Limitations
58+
#### Limitations
4859

4960
Query compatibility is not complete:
5061

@@ -55,20 +66,10 @@ These differences may require updates to certain queries or visualizations.
5566

5667
Refer to [ECS & OpenTelemetry](ecs://reference/ecs-opentelemetry.md) for details on the available aliases and field mappings.
5768

58-
## Comparison with classic APM data streams
59-
60-
This table highlights key differences between classic Elastic APM data streams and EDOT with `mapping_mode: otel`:
61-
62-
| Feature | Classic APM (ECS-based) | EDOT (`mapping_mode: otel`) |
63-
|---|---|---|
64-
| Index mode | General-purpose data streams (logs, traces, metrics) <br><br> TSDS is not supported for classic APM. | LogsDB (logs/traces), TSDS (metrics) |
65-
| Mapping style | Nested objects are mapped as structured fields. Some exceptions exist, such as `labels.*` and `numeric_labels.*`, where dots in field names are replaced with underscores. <br><br> ECS supports multiple field types (keyword, long, double, date, boolean, etc.) as defined in the schema. | Native OpenTelemetry fields with `passthrough`, preserving types and structure. |
66-
| Attribute handling | Dynamic mapping. Custom attributes are stored under `labels.*` (strings) or `numeric_labels.*` (numbers); dots in field names are replaced with underscores. <br><br> See [Document examples - classic APM](#classic-apm) | Dynamic mapping with native types under `attributes.*`, preserving dots in field names. <br><br> See [Document examples - EDOT](#edot) |
67-
6869

6970
### Document examples
7071

71-
#### Classic APM:
72+
#### Classic APM
7273

7374
```yaml
7475
"@timestamp": "2025-08-14T05:29:43.922Z"
@@ -93,7 +94,7 @@ log:
9394
level: INFO
9495
```
9596
96-
#### EDOT:
97+
#### EDOT
9798
9899
```yaml
99100
"@timestamp": "2025-08-14T05:29:43.922Z"
@@ -114,4 +115,50 @@ attributes:
114115
body:
115116
text: "Order was successfully created"
116117
severity_text: INFO
117-
```
118+
```
119+
120+
121+
## Comparison with ECS-based integrations
122+
123+
While classic APM and EDOT represent two ingestion paths for application telemetry, Elastic’s integrations (for example Nginx, MySQL, Kubernetes) also produce ECS-based data streams for logs, metrics, and events. These use ECS mappings and integration-specific pipelines optimized for their domain.
124+
125+
| Stream type | Typical field layout | Custom attributes / dot notation |
126+
|--------------|----------------------|----------------------------------|
127+
| **Integration ECS-based** | Uses ECS mapping tailored by integration. Custom fields are added under ECS-structured objects or `.custom` objects. Dots in field names are often disallowed or normalized to underscores. | Example: `host.os.name`, `nginx.access.time` rewritten to `nginx_access_time` |
128+
| **EDOT (OTel + passthrough)** | Stores OTel-native nested object structure (`resource.attributes.*`, `attributes.*`). Uses `passthrough` to expose fields at the top level for query compatibility. | Example: `attributes.cart.items: 42`, `resource.attributes.service.name: "checkout-service"` |
129+
130+
### Integration example (Nginx access logs)
131+
132+
```yaml
133+
"@timestamp": "2025-08-14T12:00:01.123Z"
134+
event:
135+
dataset: nginx.access
136+
module: nginx
137+
host:
138+
name: "web-1"
139+
nginx:
140+
access:
141+
request: "/api/v1/items"
142+
status_code: 200
143+
bytes_sent: 512
144+
user:
145+
ip: "203.0.113.45"
146+
```
147+
148+
149+
## Summary of all data stream types
150+
151+
| Feature | Classic APM (ECS-based) | Integration ECS-based streams | EDOT (`mapping_mode: otel`) |
152+
|----------|-------------------------|-------------------------------|-----------------------------|
153+
| **Index mode** | General-purpose data streams (logs, traces, metrics); TSDS not supported | ECS-style data streams (logs, metrics, events) using integrations | LogsDB for logs/traces, TSDS for metrics |
154+
| **Mapping style** | ECS object mappings; nested fields preserved. `labels.*` / `numeric_labels.*` flatten dots. | ECS mappings or integration-altered schemas (flattening, renaming). | OTel-native nested layout with `passthrough`, preserving types and structure. |
155+
| **Attribute handling** | Custom values under `labels.*` / `numeric_labels.*`, dots replaced by underscores. | Integration-specific or prefixed fields. | Custom values under `attributes.*`, dots preserved. |
156+
| **Query compatibility** | Queries target ECS field names (`service.name`, `labels.*`). | Queries assume ECS names; pipelines normalize vendor data. | `passthrough` + aliases allow ECS-style names (such as `service.name`). |
157+
| **Compatibility limits** | N/A | Some integration fields may not align 1:1 with ECS or OTel. | Not all ECS/integration fields have aliases; label vs attribute layout differs. |
158+
159+
160+
## See also
161+
162+
* [ECS and OpenTelemetry schema reference](ecs://reference/ecs-opentelemetry.md)
163+
* [Logs data stream (LogsDB)](docs-content://manage-data/data-store/data-streams/logs-data-stream.md)
164+
* [Time Series Data Stream (TSDS)](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md)

0 commit comments

Comments
 (0)