From 9bfab79b701993f7bc91487e7f70d874ebe464b9 Mon Sep 17 00:00:00 2001 From: Nityananda Gohain Date: Tue, 15 Nov 2022 15:32:14 +0530 Subject: [PATCH] Example corrected :- body changed to attributes This PR attempts to correct the example presented here. --- pkg/stanza/docs/types/trace.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/stanza/docs/types/trace.md b/pkg/stanza/docs/types/trace.md index 5c0e3e767c119..5968b6b76c266 100644 --- a/pkg/stanza/docs/types/trace.md +++ b/pkg/stanza/docs/types/trace.md @@ -25,11 +25,11 @@ If a `trace` block is specified, the parser operator will perform the trace pars regexp: '^TraceID=(?P\S*) SpanID=(?P\S*) TraceFlags=(?P\d*)' trace: trace_id: - parse_from: body.trace_id + parse_from: attributes.trace_id span_id: - parse_from: body.span_id + parse_from: attributes.span_id trace_flags: - parse_from: body.trace_flags + parse_from: attributes.trace_flags ``` --- @@ -39,9 +39,9 @@ As a special case, the [`trace_parser`](../operators/trace_parser.md) operator s ```yaml - type: trace_parser trace_id: - parse_from: body.trace_id + parse_from: attributes.trace_id span_id: - parse_from: body.span_id + parse_from: attributes.span_id trace_flags: - parse_from: body.trace_flags + parse_from: attributes.trace_flags ```