Skip to main content

Env var reference

Complete list. See Environment variables for the narrative version.

Backend selection

VarValueEffect
LANGSMITH_TRACINGtrue/falseEnables LangSmith backend
LANGSMITH_API_KEYlsv2_...LangSmith auth
LANGSMITH_ENDPOINTURLLangSmith endpoint (default: https://api.smith.langchain.com)
LANGSMITH_PROJECTstringLangSmith project name
OTEL_LANGFUSE_PUBLIC_API_KEYpk-lf-...Langfuse public key (plugin-specific)
OTEL_LANGFUSE_SECRET_API_KEYsk-lf-...Langfuse secret key (plugin-specific)
OTEL_LANGFUSE_ENDPOINTURLLangfuse OTLP endpoint
LANGFUSE_PUBLIC_KEYpk-lf-...Langfuse public key (SDK-standard)
LANGFUSE_SECRET_KEYsk-lf-...Langfuse secret key (SDK-standard)
LANGFUSE_BASE_URLURLLangfuse base URL (SDK-standard)
OTEL_SIGNOZ_ENDPOINTURLSigNoz OTLP endpoint (self-host: http://localhost:4328/v1/traces)
OTEL_SIGNOZ_INGESTION_KEYsz-...SigNoz Cloud ingestion key
OTEL_JAEGER_ENDPOINTURLJaeger OTLP endpoint (http://localhost:4318/v1/traces)
OTEL_TEMPO_ENDPOINTURLTempo OTLP endpoint
OTEL_PHOENIX_ENDPOINTURLPhoenix OTLP endpoint (http://localhost:6006/v1/traces)
OTEL_PROJECT_NAMEstringResource service.name + openinference.project.name

Shaping overrides

VarMaps toDefault
HERMES_OTEL_ENABLEDenabledtrue
HERMES_OTEL_SAMPLE_RATEsample_ratenull (AlwaysOn)
HERMES_OTEL_ROOT_SPAN_TTL_MSroot_span_ttl_ms600000 (10 min)
HERMES_OTEL_FLUSH_INTERVAL_MSflush_interval_ms60000 (60s)
HERMES_OTEL_PREVIEW_MAX_CHARSpreview_max_chars1200
HERMES_OTEL_CAPTURE_PREVIEWScapture_previewstrue
HERMES_OTEL_CAPTURE_CONVERSATION_HISTORYcapture_conversation_historyfalse
HERMES_OTEL_CONVERSATION_HISTORY_MAX_CHARSconversation_history_max_chars20000
HERMES_OTEL_PROJECT_NAMEproject_name(unset)
HERMES_OTEL_SPAN_BATCH_MAX_QUEUE_SIZEspan_batch_max_queue_size2048
HERMES_OTEL_SPAN_BATCH_SCHEDULE_DELAY_MSspan_batch_schedule_delay_ms1000
HERMES_OTEL_SPAN_BATCH_MAX_EXPORT_BATCH_SIZEspan_batch_max_export_batch_size512
HERMES_OTEL_SPAN_BATCH_EXPORT_TIMEOUT_MSspan_batch_export_timeout_ms30000
HERMES_OTEL_FORCE_FLUSH_ON_SESSION_ENDforce_flush_on_session_endtrue

Logs

See OTel logs for behavior.

VarMaps toDefault
HERMES_OTEL_CAPTURE_LOGScapture_logsfalse
HERMES_OTEL_LOG_LEVELlog_levelINFO
HERMES_OTEL_LOG_ATTACH_LOGGERlog_attach_logger(unset = root)

Debug

VarValueEffect
HERMES_OTEL_DEBUGtrue/falseEnables debug log at ~/.hermes/plugins/hermes_otel/debug.log

Boolean accepted values

TrueFalse
true / 1 / yes / onfalse / 0 / no / off / ""

Case-insensitive. Anything else → warning + fallback to default.