How to trace custom spans with HoneyHive.
HoneyHiveTracer.init()
.@trace
decorator.@atrace
decorator is identical in functionality to the @trace
decorator, but is used for async functions.enrich_session
and enrich_span
functions. Please refer to the Enrich Traces documentation for more details on enrichment during execution.
enrich_span
or enrich_session
enrich_span
or enrich_session
functions.Please refer to the Enrich Traces documentation for more details on enrichment during execution. You can find the complete documentation for this in the Python SDK reference.@atrace
decorator instead of @trace
. The @atrace
decorator is specifically designed to handle async functions properly:@atrace
decorator supports the same enrichment options as @trace
:@trace
decorator to key functions in your application, you can gain valuable insights into your custom code’s performance and behavior, complementing HoneyHive’s automatic instrumentation of LLM components.