Access the OpenTelemetry tracer for manual span creation
from keywordsai_tracing import get_client client = get_client() tracer = client.get_tracer() with tracer.start_as_current_span("custom_operation") as span: span.set_attribute("custom.key", "value") pass
Was this page helpful?