Skip to main content
Version: Next

inline::meta-reference

Description​

Meta's reference implementation of telemetry and observability using OpenTelemetry.

Configuration​

FieldTypeRequiredDefaultDescription
otel_exporter_otlp_endpointstr | NoneNoThe OpenTelemetry collector endpoint URL (base URL for traces, metrics, and logs). If not set, the SDK will use OTEL_EXPORTER_OTLP_ENDPOINT environment variable.
service_name<class 'str'>No​The service name to use for telemetry
sinkslist[inline.telemetry.meta_reference.config.TelemetrySinkNo[<TelemetrySink.SQLITE: 'sqlite'>]List of telemetry sinks to enable (possible values: otel_trace, otel_metric, sqlite, console)
sqlite_db_path<class 'str'>No~/.llama/runtime/trace_store.dbThe path to the SQLite database to use for storing traces

Sample Configuration​

service_name: "${env.OTEL_SERVICE_NAME:=\u200B}"
sinks: ${env.TELEMETRY_SINKS:=sqlite}
sqlite_db_path: ${env.SQLITE_STORE_DIR:=~/.llama/dummy}/trace_store.db
otel_exporter_otlp_endpoint: ${env.OTEL_EXPORTER_OTLP_ENDPOINT:=}