Skip to content

Commit 1fe786f

Browse files
committed
Minor edits
1 parent 0d5f754 commit 1fe786f

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

content/en/conf/1-advanced-collector/3-dropping-spans/3-1-configuration.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Switch to your **Gateway terminal** window and open the `gateway.yaml` file. Upd
1212
Configure the gateway to exclude spans with the name `/_healthz`. The `error_mode: ignore` directive ensures that any errors encountered during filtering are ignored, allowing the pipeline to continue running smoothly. The `traces` section defines the filtering rules, specifically targeting spans named `/_healthz` for exclusion.
1313

1414
```yaml
15-
filter/health: # Defines a filter processor
16-
error_mode: ignore # Ignore errors
17-
traces: # Filtering rules for traces
18-
span: # Exclude spans named "/_healthz"
19-
- 'name == "/_healthz"'
15+
filter/health: # Defines a filter processor
16+
error_mode: ignore # Ignore errors
17+
traces: # Filtering rules for traces
18+
span: # Exclude spans named "/_healthz"
19+
- 'name == "/_healthz"'
2020
```
2121
2222
2. **Add the `filter` processor to the `traces` pipeline**:
@@ -36,12 +36,13 @@ Switch to your **Gateway terminal** window and open the `gateway.yaml` file. Upd
3636
- file/traces
3737
```
3838

39-
This setup ensures that health check-related spans (`/_healthz`) are filtered out early in the pipeline, reducing unnecessary noise in your telemetry data.
39+
This setup ensures that health check related spans (`/_healthz`) are filtered out early in the pipeline, reducing unnecessary noise in your telemetry data.
4040

4141
{{% /notice %}}
4242

43-
Validate the agent configuration using **[otelbin.io](https://www.otelbin.io/)**. For reference, the `traces:` section of your pipelines will look similar to this:
43+
<!--Validate the agent configuration using **[otelbin.io](https://www.otelbin.io/)**. For reference, the `traces:` section of your pipelines will look similar to this:-->
4444

45+
<!--
4546
```mermaid
4647
%%{init:{"fontFamily":"monospace"}}%%
4748
graph LR
@@ -58,16 +59,17 @@ graph LR
5859
subgraph " "
5960
subgraph subID1[**Traces**]
6061
direction LR
61-
REC1 --> PRO1
62-
PRO1 --> PRO4
63-
PRO4 --> PRO3
64-
PRO3 --> PRO5
65-
PRO5 --> EXP1
66-
PRO5 --> EXP2
62+
REC1 -- > PRO1
63+
PRO1 -- > PRO4
64+
PRO4 -- > PRO3
65+
PRO3 -- > PRO5
66+
PRO5 -- > EXP1
67+
PRO5 -- > EXP2
6768
end
6869
end
6970
classDef receiver,exporter fill:#8b5cf6,stroke:#333,stroke-width:1px,color:#fff;
7071
classDef processor fill:#6366f1,stroke:#333,stroke-width:1px,color:#fff;
7172
classDef con-receive,con-export fill:#45c175,stroke:#333,stroke-width:1px,color:#fff;
7273
classDef sub-traces stroke:#fbbf24,stroke-width:1px, color:#fbbf24,stroke-dasharray: 3 3;
7374
```
75+
-->

content/en/conf/1-advanced-collector/3-dropping-spans/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ weight: 5
77

88
In this section, we will explore how to use the [**Filter Processor**](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/filterprocessor/README.md) to selectively drop spans based on certain conditions.
99

10-
Specifically, we will drop traces based on the span name, which is commonly used to filter out unwanted spans such as health checks or internal communication traces. In this case, we will be filtering out spans whose name is `"/_healthz"`, typically associated with health check requests and usually are quite "**noisy**".
10+
Specifically, we will drop traces based on the span name, which is commonly used to filter out unwanted spans such as health checks or internal communication traces. In this case, we will be filtering out spans that contain `"/_healthz"`, typically associated with health check requests and usually are quite "**noisy**".
1111

1212
{{% notice title="Exercise" style="green" icon="running" %}}
1313

1414
> [!IMPORTANT]
15-
> **Change _ALL_ terminal windows to the `[WORKSHOP]/3-dropping-spans` directory.**
15+
> **Change _ALL_ terminal windows to the `3-dropping-spans` directory and run the `clear` command.**
1616
1717
Copy `*.yaml` from the `2-building-resilience` directory into `3-dropping-spans`. Your updated directory structure will now look like this:
1818

0 commit comments

Comments
 (0)