When building applications, you’ll often need to capture additional context beyond what standard frameworks or LLM clients provide. Here’s how to enrich your traces with custom information.
OUTPUT_VALUE
and OUTPUT_MESSAGES
, you can capture essential output information and interaction messages within a span’s context. This enables you to log the response and systematically categorize and store messages exchanged by components.
To use traceAI Semantic Attributes, ensure you have the appropriate FI Instrumentation Package installed:
fi_instrumentation
. The Typescript examples use standard OpenTelemetry JS API (context
and propagation
for Baggage).
using_metadata
using_tags
using_session
using_user
using_prompt_template