You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _data-prepper/common-use-cases/trace-analytics.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,9 @@ The [OpenTelemetry source]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/c
38
38
39
39
There are three processors for the trace analytics feature:
40
40
41
-
*otel_traces_raw -- The *otel_traces_raw* processor receives a collection of [span](https://github.com/opensearch-project/data-prepper/blob/fa65e9efb3f8d6a404a1ab1875f21ce85e5c5a6d/data-prepper-api/src/main/java/org/opensearch/dataprepper/model/trace/Span.java) records from [*otel-trace-source*]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/configuration/sources/otel-trace-source/), and performs stateful processing, extraction, and completion of trace-group-related fields.
41
+
*otel_traces -- The *otel_traces* processor receives a collection of [span](https://github.com/opensearch-project/data-prepper/blob/fa65e9efb3f8d6a404a1ab1875f21ce85e5c5a6d/data-prepper-api/src/main/java/org/opensearch/dataprepper/model/trace/Span.java) records from [*otel-trace-source*]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/configuration/sources/otel-trace-source/), and performs stateful processing, extraction, and completion of trace-group-related fields.
42
42
* otel_traces_group -- The *otel_traces_group* processor fills in the missing trace-group-related fields in the collection of [span](https://github.com/opensearch-project/data-prepper/blob/298e7931aa3b26130048ac3bde260e066857df54/data-prepper-api/src/main/java/org/opensearch/dataprepper/model/trace/Span.java) records by looking up the OpenSearch backend.
43
-
*service_map_stateful -- The *service_map_stateful* processor performs the required preprocessing for trace data and builds metadata to display the `service-map` dashboards.
43
+
*service_map -- The *service_map* processor performs the required preprocessing for trace data and builds metadata to display the `service-map` dashboards.
44
44
45
45
46
46
### OpenSearch sink
@@ -49,8 +49,8 @@ OpenSearch provides a generic sink that writes data to OpenSearch as the destina
49
49
50
50
The sink provides specific configurations for the trace analytics feature. These configurations allow the sink to use indexes and index templates specific to trace analytics. The following OpenSearch indexes are specific to trace analytics:
51
51
52
-
* otel-v1-apm-span –- The *otel-v1-apm-span* index stores the output from the [otel_traces_raw]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/configuration/processors/otel-traces/) processor.
53
-
* otel-v1-apm-service-map –- The *otel-v1-apm-service-map* index stores the output from the [service_map_stateful]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/configuration/processors/service-map/) processor.
52
+
* otel-v1-apm-span –- The *otel-v1-apm-span* index stores the output from the [otel_traces]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/configuration/processors/otel-traces/) processor.
53
+
* otel-v1-apm-service-map –- The *otel-v1-apm-service-map* index stores the output from the [service_map]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/configuration/processors/service-map/) processor.
54
54
55
55
## Trace tuning
56
56
@@ -64,12 +64,12 @@ Use the following recommended configurations to scale Data Prepper. We recommend
64
64
65
65
#### Buffer
66
66
67
-
The total number of trace requests processed by Data Prepper is equal to the sum of the `buffer_size` values in `otel-trace-pipeline` and `raw-pipeline`. The total number of trace requests sent to OpenSearch is equal to the product of `batch_size` and `workers` in `raw-trace-pipeline`. For more information about `raw-pipeline`, see [Trace analytics pipeline]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/pipelines).
67
+
The total number of trace requests processed by Data Prepper is equal to the sum of the `buffer_size` values in `otel-trace-pipeline` and `raw-trace-pipeline`. The total number of trace requests sent to OpenSearch is equal to the product of `batch_size` and `workers` in `raw-trace-pipeline`. For more information about `raw-trace-pipeline`, see [Trace analytics pipeline]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/pipelines).
68
68
69
69
70
70
We recommend the following when making changes to buffer settings:
71
-
* The `buffer_size` value in `otel-trace-pipeline` and `raw-pipeline` should be the same.
72
-
* The `buffer_size` should be greater than or equal to `workers` * `batch_size` in the `raw-pipeline`.
71
+
* The `buffer_size` value in `otel-trace-pipeline` and `raw-trace-pipeline` should be the same.
72
+
* The `buffer_size` should be greater than or equal to `workers` * `batch_size` in the `raw-trace-pipeline`.
73
73
74
74
75
75
#### Workers
@@ -114,13 +114,13 @@ The following sections provide examples of different types of pipelines and how
114
114
115
115
The following example demonstrates how to build a pipeline that supports the [OpenSearch Dashboards Observability plugin]({{site.url}}{{site.baseurl}}/observability-plugin/trace/ta-dashboards/). This pipeline takes data from the OpenTelemetry Collector and uses two other pipelines as sinks. These two separate pipelines serve two different purposes and write to different OpenSearch indexes. The first pipeline prepares trace data for OpenSearch and enriches and ingests the span documents into a span index within OpenSearch. The second pipeline aggregates traces into a service map and writes service map documents into a service map index within OpenSearch.
116
116
117
-
Starting with Data Prepper version 2.0, Data Prepper no longer supports the `otel_traces_raw_prepper` processor. The `otel_traces_raw` processor replaces the `otel_traces_raw_prepper` processor and supports some of Data Prepper's recent data model changes. Instead, you should use the `otel_traces_raw` processor. See the following YAML file example:
117
+
Starting with Data Prepper version 2.0, Data Prepper no longer supports the `otel_traces_prepper` processor. The `otel_traces` processor replaces the `otel_traces_prepper` processor and supports some of Data Prepper's recent data model changes. Instead, you should use the `otel_traces` processor. See the following YAML file example:
118
118
119
119
```yml
120
120
entry-pipeline:
121
121
delay: "100"
122
122
source:
123
-
otel_traces_source:
123
+
otel_trace_source:
124
124
ssl: false
125
125
buffer:
126
126
bounded_blocking:
@@ -131,7 +131,7 @@ entry-pipeline:
131
131
name: "raw-trace-pipeline"
132
132
- pipeline:
133
133
name: "service-map-pipeline"
134
-
raw-pipeline:
134
+
raw-trace-pipeline:
135
135
source:
136
136
pipeline:
137
137
name: "entry-pipeline"
@@ -140,7 +140,7 @@ raw-pipeline:
140
140
buffer_size: 10240
141
141
batch_size: 160
142
142
processor:
143
-
- otel_traces_raw:
143
+
- otel_traces:
144
144
sink:
145
145
- opensearch:
146
146
hosts: ["https://localhost:9200"]
@@ -158,7 +158,7 @@ service-map-pipeline:
158
158
buffer_size: 10240
159
159
batch_size: 160
160
160
processor:
161
-
- service_map_stateful:
161
+
- service_map:
162
162
sink:
163
163
- opensearch:
164
164
hosts: ["https://localhost:9200"]
@@ -176,7 +176,7 @@ The following is an example `otel-trace-source` .yaml file with SSL and basic au
176
176
177
177
```yaml
178
178
source:
179
-
otel_traces_source:
179
+
otel_trace_source:
180
180
#record_type: event # Add this when using Data Prepper 1.x. This option is removed in 2.0
181
181
ssl: true
182
182
sslKeyCertChainFile: "/full/path/to/certfile.crt"
@@ -202,7 +202,7 @@ otel-trace-pipeline:
202
202
# default value is 3_000 ms
203
203
delay: "100"
204
204
source:
205
-
otel_traces_source:
205
+
otel_trace_source:
206
206
#record_type: event # Add this when using Data Prepper 1.x. This option is removed in 2.0
207
207
ssl: false # Change this to enable encryption in transit
208
208
authentication:
@@ -223,10 +223,10 @@ otel-trace-pipeline:
223
223
name: "raw-trace-pipeline"
224
224
- pipeline:
225
225
name: "entry-pipeline"
226
-
raw-pipeline:
226
+
raw-trace-pipeline:
227
227
# Configure same as the otel-trace-pipeline
228
228
workers: 8
229
-
# We recommend using the default value for the raw-pipeline.
229
+
# We recommend using the default value for the raw-trace-pipeline.
230
230
delay: "3000"
231
231
source:
232
232
pipeline:
@@ -242,7 +242,7 @@ raw-pipeline:
242
242
# With 64 as batch size each worker thread could process upto 3200 spans (64 * 50)
243
243
batch_size: 64
244
244
processor:
245
-
- otel_traces_raw:
245
+
- otel_traces:
246
246
- otel_traces_group:
247
247
hosts: [ "https://localhost:9200" ]
248
248
# Change to your credentials
@@ -276,7 +276,7 @@ service-map-pipeline:
276
276
pipeline:
277
277
name: "entry-pipeline"
278
278
processor:
279
-
- service_map_stateful:
279
+
- service_map:
280
280
# The window duration is the maximum length of time the data prepper stores the most recent trace data to evaluvate service-map relationships.
281
281
# The default is 3 minutes, this means we can detect relationships between services from spans reported in last 3 minutes.
282
282
# Set higher value if your applications have higher latency.
@@ -369,9 +369,9 @@ For more information about how to tune and scale Data Prepper for trace analytic
369
369
370
370
Starting with Data Prepper version 1.4, trace processing uses Data Prepper's event model. This allows pipeline authors to configure other processors to modify spans or traces. To provide a migration path, Data Prepper version 1.4 introduced the following changes:
371
371
372
-
* `otel_traces_source` has an optional `record_type` parameter that can be set to `event`. When configured, it will output event objects.
373
-
* `otel_traces_raw` replaces `otel_traces_raw_prepper` for event-based spans.
372
+
* `otel_trace_source` has an optional `record_type` parameter that can be set to `event`. When configured, it will output event objects.
373
+
* `otel_traces` replaces `otel_traces_prepper` for event-based spans.
374
374
* `otel_traces_group` replaces `otel_traces_group_prepper` for event-based spans.
375
375
376
-
In Data Prepper version 2.0, `otel_traces_source` will only output events. Data Prepper version 2.0 also removes `otel_traces_raw_prepper` and `otel_traces_group_prepper` entirely. To migrate to Data Prepper version 2.0, you can configure your trace pipeline using the event model.
376
+
In Data Prepper version 2.0, `otel_trace_source` will only output events. Data Prepper version 2.0 also removes `otel_traces_prepper` and `otel_traces_group_prepper` entirely. To migrate to Data Prepper version 2.0, you can configure your trace pipeline using the event model.
0 commit comments