Skip to content

Commit ffa657b

Browse files
committed
Update transformprocessor example
1 parent a061555 commit ffa657b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/en/docs/collector/transforming-telemetry.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ the span status to `Ok` when the `http.request.status_code` attribute is 400:
180180
transform:
181181
error_mode: ignore
182182
trace_statements:
183-
- context: span
184-
statements:
185-
- set(status.code, STATUS_CODE_OK) where attributes["http.request.status_code"] == 400
183+
- set(span.status.code, STATUS_CODE_OK) where span.attributes["http.request.status_code"] == 400
186184
```
187185

188186
<!-- prettier-ignore-end -->

0 commit comments

Comments
 (0)