Skip to main content

new

Method
This is a method of the Span class in the trace module.
Create a new span.

Signature

def new(
        trace_id: impl Into<String>,
        name: impl Into<String>,
        kind: SpanKind,
        start_offset: Duration,
    ) -> Self

Parameters

trace_id
impl Into<String>
required
No description available.
name
impl Into<String>
required
No description available.
kind
SpanKind
required
No description available.
start_offset
Duration
required
No description available.

Returns

Returns
Self
The result of the operation.