Skip to content

Commit 657fca7

Browse files
authored
Change OpenTelemetry traces example of redact operator (#201)
1 parent 5434f6c commit 657fca7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apl/tabular-operators/redact-operator.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,25 @@ The query replaces all characters matching the pattern `.*` with the character `
9494
</Tab>
9595
<Tab title="OpenTelemetry traces">
9696

97-
In OpenTelemetry traces, use `redact` to anonymize trace IDs with their hashes while preserving the service structure.
97+
In OpenTelemetry traces, use `redact` to anonymize Kubernetes node names with their hashes while preserving the service structure.
9898

9999
**Query**
100100

101101
```kusto
102102
['otel-demo-traces']
103-
| redact replaceHash=true @'.*' on trace_id
103+
| redact replaceHash=true @'.*' on ['resource.k8s.node.name']
104104
```
105105

106-
[Run in Playground](https://play.axiom.co/axiom-play-qf1k/query?initForm=%7B%22apl%22%3A%22%5B'otel-demo-traces'%5D%20%7C%20redact%20replaceHash%3Dtrue%20%40'.*'%20on%20trace_id%22%7D)
106+
[Run in Playground](https://play.axiom.co/axiom-play-qf1k/query?initForm=%7B%22apl%22%3A%22%5B'otel-demo-traces'%5D%20%7C%20redact%20replaceHash%3Dtrue%20%40'.*'%20on%20%5B'resource.k8s.node.name'%5D%22%7D)
107107

108108
**Output**
109109

110-
| _time | trace_id | service.name |
110+
| _time | resource.k8s.node.name | service.name |
111111
|---------------------|-------------------|--------------------|
112112
| 2025-01-01 12:00:00 | `QQXRv6VU` | `frontend` |
113113
| 2025-01-01 12:05:00 | `Q1urOteW` | `checkoutservice` |
114114

115-
The query replaces trace IDs with hashed values while keeping the rest of the trace intact.
115+
The query replaces Kubernetes node names with hashed values while keeping the rest of the trace intact.
116116

117117
</Tab>
118118
<Tab title="Security logs">

0 commit comments

Comments
 (0)