A span that records nothing, made where propagation is disabled or
the tracer is off. Its ids are "noop" and it starts out ended.
Attributes#
| Attribute | Type | Description |
|---|---|---|
span_id | str | |
trace_id | str | |
sampled | bool | |
kind | SpanKind | |
status | SpanStatus | |
attributes | Mapping[str, object] | |
links | Sequence[SpanLink] | |
name | = name | |
parent | = parent | |
annotations | = annotations |
Functions#
__init__#
__init__(name, parent, annotations) -> None| Parameter | Type | Description |
|---|---|---|
name | str | |
parent | AnySpan | None | |
annotations | Context |
def __init__(self, name: str, parent: AnySpan | None, annotations: Context) -> None:
self.name = name
self.parent = parent
self.annotations = annotationsend#
end(end_time, exit) -> None| Parameter | Type | Description |
|---|---|---|
end_time | int | |
exit | Exit[object, object] |
def end(self, end_time: int, exit: Exit[object, object], /) -> None:
passattribute#
attribute(key, value) -> None| Parameter | Type | Description |
|---|---|---|
key | str | |
value | object |
def attribute(self, key: str, value: object, /) -> None:
passevent#
event(name, start_time, attributes=None) -> None| Parameter | Type | Description |
|---|---|---|
name | str | |
start_time | int | |
attributes | Mapping[str, object] | None = None |
def event(
self, name: str, start_time: int, attributes: Mapping[str, object] | None = None, /
) -> None:
passadd_links#
add_links(links) -> None| Parameter | Type | Description |
|---|---|---|
links | Sequence[SpanLink] |
def add_links(self, links: Sequence[SpanLink], /) -> None:
pass