Span status
Span Status
The optional flag -ss
or --span-status
allows users to specify the span status.
If not specified, tracepusher assumes an OK
status.
For reference, these map to values of 0
(Unset), 1
(OK) or 2
(Error) according to the OpenTelemetry specification.
Valid Span Statuses
These are case insensitive:
OK
(default)ERROR
UNSET
(if you use anything other than "OK" or "ERROR")
Examples
Defaults to OK
./tracepusher \
-ep http://localhost:4318 \
-sen serviceA \
-spn span1 \
-dur 2
Explicitly set to OK
./tracepusher \
-ep http://localhost:4318 \
-sen serviceA \
-spn span1 \
-dur 2 \
--span-status OK
Explicitly set to Error
./tracepusher \
-ep http://localhost:4318 \
-sen serviceA \
-spn span1 \
-dur 2 \
--span-status ERROR
Invalid value (defaults to Unset)
./tracepusher \
-ep http://localhost:4318 \
-sen serviceA \
-spn span1 \
-dur 2 \
--span-status ABC123