Add a new (optional) flag to tracepusher that allows a user to specify a span kind
If not specified, tracepusher will be backwards compatible and default to the existing behaviour (SPAN_KIND_INTERNAL)
Expected valid values for this new flag will be:
UNSPECIFIED tracepusher will follow guidance and transform this to INTERNAL
INTERNAL (default)
SERVER
CLIENT
PRODUCER
CONSUMER
These values can be provided by the end-user in any cApITalisatION form.
The code should uppercase the input then append to SPAN_KIND so an input of CLiENT would become SPAN_KIND_CLIENT.
If anything other than the values above are provided, an error is to be thrown and the trace will not be sent.
Related to #51: Add the ability to set the span type.
Currently, tracepusher is hardcoded to have a span type of
SPAN_KIND_INTERNAL
https://github.com/agardnerIT/tracepusher/blob/cfec80193bd0d4a2770989a32f941c53670af406/tracepusher.py#L271
This enhancement will:
SPAN_KIND_INTERNAL
)Expected valid values for this new flag will be:
UNSPECIFIED
tracepusher will follow guidance and transform this toINTERNAL
INTERNAL
(default)SERVER
CLIENT
PRODUCER
CONSUMER
These values can be provided by the end-user in any cApITalisatION form. The code should uppercase the input then append to
SPAN_KIND
so an input ofCLiENT
would becomeSPAN_KIND_CLIENT
.If anything other than the values above are provided, an error is to be thrown and the trace will not be sent.
See these for more info on the spec: