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: observability/otel/otel-collector/otel-collector-processors.adoc
+106-1Lines changed: 106 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -394,7 +394,7 @@ config: |
394
394
<2> The default exporter when the attribute value is not present in the table in the next section.
395
395
<3> The table that defines which values are to be routed to which exporters.
396
396
397
-
You can optionally create an `attribute_source` configuration, which defines where to look for the attribute in `from_attribute`. The allowed value is `context` to search the context, which includes the HTTP headers, or `resource` to search the resource attributes.
397
+
Optionally, you can create an `attribute_source` configuration, which defines where to look for the attribute that you specify in the `from_attribute` field. The supported values are `context` for searching the context including the HTTP headers, and `resource` for searching the resource attributes.
398
398
399
399
[id="cumulativetodelta-processor_{context}"]
400
400
== Cumulative-to-Delta Processor
@@ -453,3 +453,108 @@ processors:
453
453
----
454
454
<1> Specifies attribute keys to group by.
455
455
<2> If a processed span, log record, or metric datapoint contains at least one of the specified attribute keys, it is reassigned to a Resource that shares the same attribute values; and if no such Resource exists, a new one is created. If none of the specified attribute keys is present in the processed span, log record, or metric datapoint, then it remains associated with its current Resource. Multiple instances of the same Resource are consolidated.
456
+
457
+
[id="transform-processor_{context}"]
458
+
== Transform Processor
459
+
460
+
The Transform Processor enables modification of telemetry data according to specified rules and in the link:https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl[OpenTelemetry Transformation Language (OTTL)].
461
+
For each signal type, the processor processes a series of conditions and statements associated with a specific OTTL Context type and then executes them in sequence on incoming telemetry data as specified in the configuration.
462
+
Each condition and statement can access and modify telemetry data by using various functions, allowing conditions to dictate if a function is to be executed.
463
+
464
+
All statements are written in the OTTL.
465
+
You can configure multiple context statements for different signals, traces, metrics, and logs.
466
+
The value of the `context` type specifies which OTTL Context the processor must use when interpreting the associated statements.
467
+
468
+
:FeatureName: The Transform Processor
469
+
include::snippets/technology-preview.adoc[]
470
+
471
+
.Configuration summary
472
+
[source,yaml]
473
+
----
474
+
# ...
475
+
config: |
476
+
processors:
477
+
transform:
478
+
error_mode: ignore # <1>
479
+
<trace|metric|log>_statements: # <2>
480
+
- context: <string> # <3>
481
+
conditions: # <4>
482
+
- <string>
483
+
- <string>
484
+
statements: # <5>
485
+
- <string>
486
+
- <string>
487
+
- <string>
488
+
- context: <string>
489
+
statements:
490
+
- <string>
491
+
- <string>
492
+
- <string>
493
+
# ...
494
+
----
495
+
<1> Optional: See the following table "Values for the optional `error_mode` field".
496
+
<2> Indicates a signal to be transformed.
497
+
<3> See the following table "Values for the `context` field".
498
+
<4> Optional: Conditions for performing a transformation.
0 commit comments