Skip to content

Commit d0d5082

Browse files
pipeline: processors: opentelemetry-envelope
Signed-off-by: Alexa Kreizinger <[email protected]>
1 parent 5610226 commit d0d5082

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

pipeline/processors/opentelemetry-envelope.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
# OpenTelemetry Envelope
1+
# OpenTelemetry envelope
22

3-
The _OpenTelemetry Envelope_ processor is used to transform your data to be compatible with the OpenTelemetry Log schema. If your data was __not__ generated by [OpenTelemetry input](../inputs/opentelemetry.md) and your backend or destination for your logs expects to be in an OpenTelemetry schema.
3+
The _OpenTelemetry envelope_ processor transforms your data to be compatible with the OpenTelemetry log schema. If your data wasn't generated by the [OpenTelemetry input plugin](../inputs/opentelemetry.md), you can use this processor before sending that data to a destination that expects an OpenTelemetry-compatible schema.
44

5-
![](../../.gitbook/assets/processor_opentelemetry_envelope.png)
5+
![OpenTelemetry envelope transformation](../../.gitbook/assets/processor_opentelemetry_envelope.png)
66

77
{% hint style="info" %}
88

9-
**Note:** Both processors and this specific component can be enabled only by using
10-
the YAML configuration format. Classic mode configuration format doesn't support processors.
9+
Only [YAML configuration files](../administration/configuring-fluent-bit/yaml/README.md) support processors.
1110

1211
{% endhint %}
1312

14-
## Configuration Parameters
13+
## Configuration parameters
1514

16-
The processor does not provide any extra configuration parameter, it can be used directly in your _processors_ Yaml directive.
15+
The OpenTelemetry envelope processor doesn't use configuration parameters.
1716

18-
## Usage Example
17+
## Examples
1918

20-
In this example, we will use the Dummy input plugin to generate a sample message per second, right after is created the processor `opentelemetry_envelope` is used to transform the data to be compatible with the OpenTelemetry Log schema. The output is sent to the standard output and also to an OpenTelemetry collector which is receiving data in port 4318.
21-
22-
Example Fluent Bit and OpenTelemetry collector configuration files:
19+
The following example uses the `dummy` input plugin to generate one sample message per second, then transforms those messages by using the `opentelemetry_envelope` processor. The resulting transformed data is sent to `stdout` and the `opentelemetry` output plugin.
2320

2421
{% tabs %}
2522
{% tab title="fluent-bit.yaml" %}
@@ -77,9 +74,9 @@ service:
7774
{% endtab %}
7875
{% endtabs %}
7976
80-
You will notice in the standard output of Fluent Bit will print the raw representation of the schema, however, the OpenTelemetry collector will receive the data in the OpenTelemetry Log schema.
77+
The standard output of Fluent Bit prints the raw representation of the schema. However, the OpenTelemetry collector receives the data in an OpenTelemetry-compatible format.
8178
82-
Inspecting the output file `out.json` you will see the data in the OpenTelemetry Log schema:
79+
If you inspect the `out.json` output file, you will see OpenTelemetry-compatible data, similar to the following:
8380

8481

8582
```json
@@ -107,7 +104,7 @@ Inspecting the output file `out.json` you will see the data in the OpenTelemetry
107104
}
108105
```
109106

110-
While OpenTelemetry Envelope enrich your logs with the Schema, you might be interested into take a step further and use the [Content Modifier](../processors/content-modifier.md) processor to modify the content of your logs. Here is a quick example that will allow you to add some resource and scope attributes to your logs:
107+
If you're interested in additional transformations, you can also use the [content modifier](../processors/content-modifier.md) processor to modify the content of your logs. The following example shows how to add resource and scope attributes to logs:
111108

112109
{% tabs %}
113110
{% tab title="fluent-bit.yaml" %}
@@ -145,7 +142,7 @@ pipeline:
145142
{% endtab %}
146143
{% endtabs %}
147144

148-
The collector JSON output will look like this:
145+
The collector JSON output will resemble the following:
149146

150147
```json
151148
{
@@ -181,4 +178,4 @@ The collector JSON output will look like this:
181178
}
182179
```
183180

184-
For more details about further processing, read the [Content Modifier](../processors/content-modifier.md) processor documentation.
181+
For more details about further processing, read the [content modifier](../processors/content-modifier.md) processor documentation.

0 commit comments

Comments
 (0)