Skip to content

Commit c947137

Browse files
committed
Improve configuration flow #357
1 parent b751554 commit c947137

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

content/en/ninja-workshops/3-opentelemetry-collector-workshops/2-advanced-collector/8-routing-data/8-1-connector.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ In this exercise, you will configure the **Routing Connector** in the `gateway.y
1111
In OpenTelemetry configuration files, `connectors` have their own dedicated section, similar to receivers and processors.
1212

1313
**Add the `routing` connector**:
14-
In the **Gateway terminal** window edit `gateway.yaml` and add the following below the `receivers:` section and above the `processors:` section:
14+
In the **Gateway terminal** window edit `gateway.yaml` and add the following below the `connectors:` section:
1515

1616
```yaml
17-
connectors:
1817
routing:
1918
default_pipelines: [traces/standard] # Default pipeline if no rule matches
2019
error_mode: ignore # Ignore errors in routing

content/en/ninja-workshops/3-opentelemetry-collector-workshops/2-advanced-collector/8-routing-data/8-2-pipelines.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ weight: 2
66

77
{{% notice title="Exercise" style="green" icon="running" %}}
88

9+
**Update the `traces` pipeline to use routing**:
10+
11+
1. To enable `routing`, update the original `traces:` pipeline by using `routing` as the only exporter. This ensures all span data is sent through the routing connector for evaluation.
12+
2. Remove all processors and replace it with an empty array (`[]`). These are now defined in the `traces/standard` and `traces/security` pipelines.
13+
14+
```yaml
15+
pipelines:
16+
traces: # Original traces pipeline
17+
receivers:
18+
- otlp # OTLP Receiver
19+
processors: []
20+
exporters:
21+
- routing # Routing Connector
22+
```
23+
924
**Add both the `standard` and `security` traces pipelines**:
1025

1126
1. **Add the Standard pipeline**: This pipeline processes all spans that do not match the routing rule.
@@ -40,22 +55,6 @@ This also uses `routing` as its receiver. Add this below the Standard one:
4055
- file/traces/security # File Exporter for spans matching rule
4156
```
4257

43-
**Update the `traces` pipeline to use routing**:
44-
45-
1. To enable `routing`, update the original `traces:` pipeline by using `routing` as the only exporter.
46-
This ensures all span data is sent through the routing connector for evaluation.
47-
2. Remove all processors and replace it with an empty array (`[]`). These are now defined in the `traces/standard` and `traces/security` pipelines.
48-
49-
```yaml
50-
pipelines:
51-
traces: # Original traces pipeline
52-
receivers:
53-
- otlp # OTLP Receiver
54-
processors: []
55-
exporters:
56-
- routing # Routing Connector
57-
```
58-
5958
{{% /notice %}}
6059

6160
Validate the agent configuration using **[otelbin.io](https://www.otelbin.io/)**. For reference, the `traces:` section of your pipelines will look similar to this:

0 commit comments

Comments
 (0)