Skip to content

Commit 2395f65

Browse files
committed
Minor edits to routing data configuration files
1 parent 09c03d5 commit 2395f65

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

content/en/conf/1-advanced-collector/6-routing-data/6-1-connector.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ In the **Gateway terminal** window, edit `gateway.yaml` and find and uncomment
3535

3636
{{% /notice %}}
3737

38-
The default pipeline in the configuration file works at a Catch all. It will be the routing target for any data (spans in our case) that does match a rule in the routing rules table, In this table you find the pipeline that is the target for any span that matches the following rule: "[deployment.environment"] == "security-applications"
39-
38+
The default pipeline in the configuration file works at a Catch all. It will be the routing target for any data (spans in our case) that do not match a rule in the routing rules table, In this table you find the pipeline that is the target for any span that matches the following rule: `["deployment.environment"] == "security-applications"`
4039

4140
With the `routing` configuration complete, the next step is to configure the `pipelines` to apply these routing rules.

content/en/conf/1-advanced-collector/6-routing-data/6-2-pipelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 2
88

99
**Update the original `traces` pipeline to use routing**:
1010

11-
1. To enable `routing`, update the original `traces:` pipeline to use `routing` as the only exporter. This ensures all span data is sent through the **Routing Connector** for evaluation and then onwards to connected pipelines. Also, remove **all** processors and replace it with an empty array (`[]`) as this will now behandeld in the `traces/route1-regular` and `traces/route2-security` pipelines, allowing for custom behaviour for each route. Your `traces:` configuration should look like this:
11+
1. To enable `routing`, update the original `traces` pipeline to use `routing` as the only exporter. This ensures all span data is sent through the **Routing Connector** for evaluation and then onwards to connected pipelines. Also, remove **all** processors and replace it with an empty array (`[]`) as this will now behandeld in the `traces/route1-regular` and `traces/route2-security` pipelines, allowing for custom behaviour for each route. Your `traces:` configuration should look like this:
1212

1313
```yaml
1414
traces: # Traces pipeline
@@ -19,7 +19,7 @@ weight: 2
1919
- routing
2020
```
2121
22-
**Add both the `route1-regular` and `route2-security` traces pipelines** below the existing `traces:` pipeline:
22+
**Add both the `route1-regular` and `route2-security` traces pipelines** below the existing `traces` pipeline:
2323

2424
1. **Configure Route1-regular pipeline**: This pipeline will handle all spans that have **no match** in the routing table in the connector.
2525
Notice this uses `routing` as its only receiver and will recieve data thought its `connection` from the original traces pipeline.
@@ -37,7 +37,7 @@ Notice this uses `routing` as its only receiver and will recieve data thought it
3737
- file/traces/route1-regular # File Exporter for unmatched spans
3838
```
3939

40-
2. **Add the route2-security pipeline**: This pipeline processes all spans that do match our rule "[deployment.environment"] == "security-applications" in the the routing rule. This pipeline is also using `routing` as its receiver. Add this pipline below the `traces/route1-regular` one.
40+
2. **Add the route2-security pipeline**: This pipeline processes all spans that do match our rule `"[deployment.environment"] == "security-applications"` in the the routing rule. This pipeline is also using `routing` as its receiver. Add this pipline below the `traces/route1-regular` one.
4141

4242
```yaml
4343
traces/route2-security: # Default pipeline for unmatched spans

content/en/conf/1-advanced-collector/6-routing-data/6-3-test-routing.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 3
66

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

9-
In this section, we will test the `routing` rule configured for the **Gateway**. The expected result is that a `span` generated by the `loadgen` that match the [deployment.environment] == security-applications rule will be sent to the `gateway-traces-route2-security.out` file.
9+
In this section, we will test the `routing` rule configured for the **Gateway**. The expected result is that a `span` generated by the `loadgen` that match the `"[deployment.environment"] == "security-applications"` rule will be sent to the `gateway-traces-route2-security.out` file.
1010

1111
**Start the Gateway**: In your **Gateway terminal** window start the **Gateway**.
1212

@@ -39,7 +39,6 @@ If you check `gateway-traces-route1-regular.out`, it will contain the `span` sen
3939
```
4040

4141
Again, both the **Agent** and **Gateway** should display debug information, including the span you just sent. This time, the **Gateway** will write a line to the `gateway-traces-route2-security.out` file, which is designated for spans where the `deployment.environment` resource attribute matches `"security-applications"`.
42-
The `gateway-traces-route1-regular.out` should be unchanged.
4342

4443
{{% tabs %}}
4544
{{% tab title="Validate resource attribute matches" %}}

0 commit comments

Comments
 (0)