Custom Spans
Create custom spans with specific names and attributes for advanced observability needs.
Custom Span Names
Use the span_name parameter to set a semantic span name:
Custom Attributes
Pass additional attributes directly to the decorator:
Attribute Constants
Import attribute constants from rhesis.sdk.telemetry:
See Semantic Conventions for the full list of AIAttributes keys and AIEvents names.
Helper Functions
Use helper functions to create attribute dictionaries:
Building Custom Decorators
Create your own convenience decorators by wrapping @observe:
Example: Full Custom Implementation
Next: Learn about auto-instrumentation for zero-config tracing.