A365SpanProcessor Class

Span processor that stamps agent identity and propagates baggage to span attributes.

Static identity (tenant_id, agent_id) is set from configuration on every span. Additional baggage entries are propagated selectively for documented keys. Never overwrites existing attributes.

Constructor

A365SpanProcessor(tenant_id: str | None = None, agent_id: str | None = None)

Parameters

Name Description
tenant_id
Default value: None
agent_id
Default value: None

Methods

on_end
on_start

on_end

on_end(span)

Parameters

Name Description
span
Required

on_start

on_start(span, parent_context=None)

Parameters

Name Description
span
Required
parent_context
Default value: None