package
1.3.0
Repository: https://github.com/warpstreamlabs/bento.git
Documentation: pkg.go.dev

# Packages

Package tracing implements utility functions for interacting with a global tracing system.

# Functions

FinishSpans calls Finish on all message parts containing a span.
GetActiveSpan returns a span attached to a message part.
GetSpan returns a span attached to a message part.
GetSpan returns a span within a context.
GetTraceID returns the traceID from a span attached to a message part.
InitSpan sets up an OpenTracing span on a message part if one does not already exist.
InitSpans sets up OpenTracing spans on each message part if one does not already exist.
InitSpansFromParentTextMap obtains a span parent reference from a text map and creates child spans for each message.
OtelSpan creates a common span from the open telemetry package.
WithChildSpan takes a message, extracts a span, creates a new child span, and returns a new message with that span embedded.
WithChildSpans takes a message, extracts spans per message part, creates new child spans, and returns a new message with those spans embedded.
WithSiblingSpans takes a message, extracts spans per message part, creates new sibling spans, and returns a new message with those spans embedded.

# Structs

Span abstracts the span type of our global tracing system in order to allow it to be replaced in future.