TowerOpentelemetry.Attributes (TowerOpentelemetry v0.2.1)

Copy Markdown View Source

Pure functions that translate a Tower.Event into OpenTelemetry semantic convention attributes for exceptions.

See https://opentelemetry.io/docs/specs/semconv/exceptions/.

Summary

Functions

Returns the list of exception.* attributes for the given event, following the OpenTelemetry semantic conventions for exceptions.

A short human-readable description of the event, suitable for use as the span status message.

Tower-specific attributes attached alongside the exception.* ones, for correlation between Tower events and OTEL spans.

Functions

exception_attributes(event)

Returns the list of exception.* attributes for the given event, following the OpenTelemetry semantic conventions for exceptions.

status_message(event)

A short human-readable description of the event, suitable for use as the span status message.

tower_attributes(event)

Tower-specific attributes attached alongside the exception.* ones, for correlation between Tower events and OTEL spans.