Skip to content

Commit c62a779

Browse files
Fix errors in the pipeline code (#10824) (#10827)
1 parent dc57ece commit c62a779

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

_data-prepper/common-use-cases/trace-analytics.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ The [OpenTelemetry source]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/c
3838

3939
There are three processors for the trace analytics feature:
4040

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.
4242
* 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.
4444

4545

4646
### OpenSearch sink
@@ -49,8 +49,8 @@ OpenSearch provides a generic sink that writes data to OpenSearch as the destina
4949

5050
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:
5151

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.
5454

5555
## Trace tuning
5656

@@ -64,12 +64,12 @@ Use the following recommended configurations to scale Data Prepper. We recommend
6464

6565
#### Buffer
6666

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).
6868

6969

7070
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`.
7373

7474

7575
#### Workers
@@ -114,13 +114,13 @@ The following sections provide examples of different types of pipelines and how
114114

115115
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.
116116

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:
118118

119119
```yml
120120
entry-pipeline:
121121
delay: "100"
122122
source:
123-
otel_traces_source:
123+
otel_trace_source:
124124
ssl: false
125125
buffer:
126126
bounded_blocking:
@@ -131,7 +131,7 @@ entry-pipeline:
131131
name: "raw-trace-pipeline"
132132
- pipeline:
133133
name: "service-map-pipeline"
134-
raw-pipeline:
134+
raw-trace-pipeline:
135135
source:
136136
pipeline:
137137
name: "entry-pipeline"
@@ -140,7 +140,7 @@ raw-pipeline:
140140
buffer_size: 10240
141141
batch_size: 160
142142
processor:
143-
- otel_traces_raw:
143+
- otel_traces:
144144
sink:
145145
- opensearch:
146146
hosts: ["https://localhost:9200"]
@@ -158,7 +158,7 @@ service-map-pipeline:
158158
buffer_size: 10240
159159
batch_size: 160
160160
processor:
161-
- service_map_stateful:
161+
- service_map:
162162
sink:
163163
- opensearch:
164164
hosts: ["https://localhost:9200"]
@@ -176,7 +176,7 @@ The following is an example `otel-trace-source` .yaml file with SSL and basic au
176176

177177
```yaml
178178
source:
179-
otel_traces_source:
179+
otel_trace_source:
180180
#record_type: event # Add this when using Data Prepper 1.x. This option is removed in 2.0
181181
ssl: true
182182
sslKeyCertChainFile: "/full/path/to/certfile.crt"
@@ -202,7 +202,7 @@ otel-trace-pipeline:
202202
# default value is 3_000 ms
203203
delay: "100"
204204
source:
205-
otel_traces_source:
205+
otel_trace_source:
206206
#record_type: event # Add this when using Data Prepper 1.x. This option is removed in 2.0
207207
ssl: false # Change this to enable encryption in transit
208208
authentication:
@@ -223,10 +223,10 @@ otel-trace-pipeline:
223223
name: "raw-trace-pipeline"
224224
- pipeline:
225225
name: "entry-pipeline"
226-
raw-pipeline:
226+
raw-trace-pipeline:
227227
# Configure same as the otel-trace-pipeline
228228
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.
230230
delay: "3000"
231231
source:
232232
pipeline:
@@ -242,7 +242,7 @@ raw-pipeline:
242242
# With 64 as batch size each worker thread could process upto 3200 spans (64 * 50)
243243
batch_size: 64
244244
processor:
245-
- otel_traces_raw:
245+
- otel_traces:
246246
- otel_traces_group:
247247
hosts: [ "https://localhost:9200" ]
248248
# Change to your credentials
@@ -276,7 +276,7 @@ service-map-pipeline:
276276
pipeline:
277277
name: "entry-pipeline"
278278
processor:
279-
- service_map_stateful:
279+
- service_map:
280280
# The window duration is the maximum length of time the data prepper stores the most recent trace data to evaluvate service-map relationships.
281281
# The default is 3 minutes, this means we can detect relationships between services from spans reported in last 3 minutes.
282282
# 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
369369

370370
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:
371371

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.
374374
* `otel_traces_group` replaces `otel_traces_group_prepper` for event-based spans.
375375

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.
377377

0 commit comments

Comments
 (0)