EXPAND ALL
  • Home
Open Source Docs

px.otel.trace.Span

Defines the OpenTelemetry Trace Span type.

Span describes how to transform a pixie DataFrame into the OpenTelemetry Span type.

Arguments

NameTypeDescription
namestring,ColumnThe name of the span. Can be a string or a STRING column.
start_timeColumnThe column that marks the beginning of the span, must be TIME64NS.
end_timeColumnThe column that marks the end of the span, must be TIME64NS.
trace_idColumn, optionalThe column containing trace_ids, must be formatted as a lower-case hex with 32 hex characters (aka 16 bytes), or the engine will auto-generate a new ID. If not specified, the OpenTelemetry exporter will auto-generate a valid ID.
span_idColumn, optionalThe column containing trace_ids, must be formatted as a lower-case hex with 16 hex characters (aka 8 bytes), or the engine will auto-generate a new ID. If not specified, the OpenTelemetry exporter will auto-generate a valid ID.
parent_span_idColumn, optionalThe column containing parent_span_ids, must be formatted as a lower-case hex with 16 hex characters (aka 8 bytes), or the engine will write the data as empty. If not specified, will leave the parent_span_id field empty.
attributesDict[string, string], optionalA mapping of attribute name to the column name that stores data about the attribute.
kindint, optionalThe OpenTelemetry SpanKind enum value to assign for all the spans. Defaults to SPAN_KIND_SERVER if not set.

Returns

OTelDataContainer: the mapping of DataFrame columns to OpenTelemetry Span fields. Can be passed into px.otel.Data() as the data argument.

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.