Requirements and Prequisites
- A running OpenTelemetry collector
- Docker
Basic Docker Usage
docker run gardnera/tracepusher:v0.8.0 \
-ep http(s)://OTEL-COLLECTOR-ENDPOINT:4318 \
-sen service_name \
-spn span_name \
-dur SPAN_TIME_IN_SECONDS
Optional Parameters
--duration-type ms|s (defaults to `s` > seconds)
--dry-run True|False
--debug True|False
--time-shift True|False
--parent-span-id <16 character hex id>
--trace-id <32 character hex id>
--span-id <16 character hex id>
--span-attributes key=value key2=value2=type
--span-events timeOffsetInMillis=EventName=AttributeKey=AttributeValue=type [event2...] [event3...]
--span-kind UNSPECIFIED|INTERNAL|CLIENT|SERVER|CONSUMER|PRODUCER (defaults to `INTERNAL`)
For span atttribute types, see Span Attribute Types.
For span events, see Span events
For multi-span traces, see multi span traces
For duration type, see duration type
For span kind, see span kind