enable_tracing
flag to True
in the PipelineParams
object.
refer to this link for more details.gen_ai.system
, gen_ai.request.model
to llm.provider
, llm.model_name
input
, output
, transcript
to structured Future AGI formatgen_ai.usage.*
to llm.token_count.*
fi-instrumentation[grpc]
)fi.span.kind
based on span attributes:
LLM
: For LLM, STT, and TTS operationsTOOL
: For tool calls and resultsAGENT
: For setup and configuration spansCHAIN
: For turn and conversation spansenable_fi_attribute_mapping(transport: Transport = Transport.HTTP) -> bool
transport
: Transport protocol enum (Transport.HTTP
or Transport.GRPC
)bool
: True if at least one exporter was replacedenable_http_attribute_mapping() -> bool
enable_grpc_attribute_mapping() -> bool
create_mapped_http_exporter(endpoint: Optional[str] = None, headers: Optional[dict] = None)
create_mapped_grpc_exporter(endpoint: Optional[str] = None, headers: Optional[dict] = None)
MappedHTTPSpanExporter
MappedGRPCSpanExporter
BaseMappedSpanExporter
register()
before installing attribute mappingpip install "fi-instrumentation[grpc]"
FI_API_KEY
and FI_SECRET_KEY
environment variablesset_global_tracer_provider
in the register
function is set to True