PythonTracerJudgment Tracer Provider

ProxyTracer

Internal tracer that delegates to the currently active ``JudgmentTracer``.

Internal tracer that delegates to the currently active JudgmentTracer.

All span creation goes through this proxy so that instrumentation libraries always target whichever tracer is active in the current context, even when multiple tracers exist.

__init__()

def __init__(provider):

Parameters

provider

required

:

JudgmentTracerProvider


start_span()

def start_span(name, context=None, kind=SpanKind.INTERNAL, attributes=None, links=None, start_time=None, record_exception=True, set_status_on_exception=True) -> Span:

Parameters

name

required

:

str

context

:

Optional[Context]

Default:

None

kind

:

SpanKind

Default:

SpanKind.INTERNAL

attributes

:

Attributes

Default:

None

links

:

_Links

Default:

None

start_time

:

Optional[int]

Default:

None

record_exception

:

bool

Default:

True

set_status_on_exception

:

bool

Default:

True

Returns

Span


start_as_current_span()

def start_as_current_span(name, context=None, kind=SpanKind.INTERNAL, attributes=None, links=None, start_time=None, record_exception=True, set_status_on_exception=True, end_on_exit=True):

Parameters

name

required

:

str

context

:

Optional[Context]

Default:

None

kind

:

SpanKind

Default:

SpanKind.INTERNAL

attributes

:

Attributes

Default:

None

links

:

_Links

Default:

None

start_time

:

Optional[int]

Default:

None

record_exception

:

bool

Default:

True

set_status_on_exception

:

bool

Default:

True

end_on_exit

:

bool

Default:

True