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/conf/1-advanced-collector/3-dropping-spans/3-1-configuration.md
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,11 @@ Switch to your **Gateway terminal** window and open the `gateway.yaml` file. Upd
12
12
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.
13
13
14
14
```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"'
20
20
```
21
21
22
22
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
36
36
- file/traces
37
37
```
38
38
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 checkrelated spans (`/_healthz`) are filtered out early in the pipeline, reducing unnecessary noise in your telemetry data.
40
40
41
41
{{% /notice %}}
42
42
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:-->
Copy file name to clipboardExpand all lines: content/en/conf/1-advanced-collector/3-dropping-spans/_index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ weight: 5
7
7
8
8
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.
9
9
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**".
0 commit comments