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: content/en/ninja-workshops/10-advanced-otel/80-routing/8-1-routing-test.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,20 +104,23 @@ Make sure the are **NO** `*.out` files in the `[WORKSHOP]/8-routing` folder.
104
104
105
105
-**Send a Regular Span**:
106
106
Find your `Test` terminal window and navigate to the `[WORKSHOP]/8-routing` folder. From there, send a regular span using the `trace.json` file to confirm that communication is functioning as expected.
107
-
Both the `agent` and `gateway` should display debug information, including the span you just sent. Additionally, the gateway should generate a new `./gateway-traces-default.out` file, as this is now the destination for regular spans.
107
+
Both the `agent` and `gateway` should display debug information, including the span you just sent. Additionally, the gateway should generate a new `gateway-traces-default.out` file, as this is now the destination for regular spans.
If you verify the `./gateway-traces-default.out` is should contain the span we send with the cURL command.
110
+
If you check `gateway-traces-default.out`, it should contain the `span` sent using the `cURL` command. You will also see an empty `gateway-traces-security.out` file, as the routing configuration creates output files immediately, even if no matching spans have been processed yet.
111
111
{{% /notice %}}
112
112
113
113
-**Send a Security Span**:
114
114
Make sure both the `agent` and `gateway` are running, then send a security span using the `security.json` file to test the routing rule in the gateway.
115
-
Both the `agent` and `gateway` should display debug information, including the span you just sent. Additionally, the gateway should generate a new `./gateway-traces-security.out` file, as this is the destination for spans where the `deployment.environment` resourceSpan attribute matches `"security_applications"`.
115
+
Both the `agent` and `gateway` should display debug information, including the span you just sent. Additionally, the gateway should write a line to the `gateway-traces-security.out` file, as this is the destination for spans where the `deployment.environment` resourceSpan attribute matches `"security_applications"`.
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/10-advanced-otel/80-routing/_index.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,6 @@ To enable routing we need to define two pipelines for traces:
93
93
receivers: [routing] # Only receives spans from the routing connector
94
94
processors:
95
95
- memory_limiter
96
-
- batch
97
96
- resource/add_mode
98
97
exporters: [file/traces/standard] # Location for spans not matching rule
99
98
```
@@ -108,11 +107,11 @@ To enable routing we need to define two pipelines for traces:
108
107
receivers: [routing] # Only receives spans from the routing connector
109
108
processors:
110
109
- memory_limiter
111
-
- batch
112
110
- resource/add_mode
113
111
exporters: [file/traces/security] # Location for spans matching rule
114
112
#metrics:
115
113
```
114
+
116
115
117
116
- **Update the `traces` pipeline to handle routing**:
118
117
To enable `routing`, you need to update the original `traces` pipeline by adding `routing` as an exporter. This will send your span data through the `routing connector` for evaluation.
@@ -127,6 +126,8 @@ To enable `routing`, you need to update the original `traces` pipeline by adding
Keep in mind that any existing processors have been removed from this pipeline. They are now handled by either the standard pipeline or the target pipelines, depending on the routing rules.
129
+
130
+
Additionally, the `batch` processor has been removed from the new pipelines. This ensures that `spans` are written immediately, rather than waiting for multiple spans to arrive before processing. This change speeds up the workshop and allows you to see results faster.
0 commit comments