Skip to main content
The Python SDK reads the following environment variables. All are optional when the equivalent parameter is passed directly to HoneyHiveTracer.init() or the HoneyHive client.

Authentication & Endpoints

VariableDescriptionDefault
HH_API_KEYAPI key for authenticating with HoneyHive. Also accepts HONEYHIVE_API_KEY.None (required)
HH_PROJECTProject name. Also accepts HONEYHIVE_PROJECT.None (required)
HH_API_URLBase URL for the Data Plane API. Also accepts HONEYHIVE_SERVER_URL or HH_SERVER_URL.https://api.honeyhive.ai
HH_CP_API_URLBase URL for the Control Plane API. Falls back to HH_API_URL if not set. The client accepts this URL, but not every SDK surface routes through it yet. Only relevant for self-hosted federated deployments.Same as HH_API_URL

Tracer Behavior

VariableDescriptionDefault
HH_SOURCEEnvironment label for traces (e.g., "prod", "dev", "staging")."dev"
HH_SESSION_NAMEDefault session name.""
HH_DISABLE_BATCHDisable batched span export. Set to true for serverless environments.false
HH_DISABLE_HTTP_TRACINGDisable automatic HTTP request tracing. Also accepts HONEYHIVE_DISABLE_HTTP_TRACING.false
HH_TEST_MODEDisable OTLP export and use local-only session IDs. Useful for local development and tests.false
HH_VERBOSESet to "true" to enable verbose debug logging."false"
HH_OTLP_ENABLEDEnable or disable OTLP span export.true

Export & Performance

VariableDescriptionDefault
HH_OTLP_PROTOCOLOTLP transport protocol ("http/json", "http/protobuf", or "grpc"). Also accepts OTEL_EXPORTER_OTLP_PROTOCOL."http/json"
HH_BATCH_SIZEMaximum number of spans per export batch.100
HH_FLUSH_INTERVALInterval in seconds between batch exports.5.0
HH_EXPORT_TIMEOUTTimeout in seconds for OTLP span exports.30
HH_EXPORT_TIMEOUT_SECONDSTimeout in seconds for large data exports via the REST API (e.g., export(), get_by_session_id()).120
HH_HIGH_CONCURRENCYSet to "true" to optimize for high-concurrency workloads.false

Resource Attributes

VariableDescriptionDefault
HH_SERVICE_NAMEOverride the OpenTelemetry service.name resource attribute.Auto-detected
HH_SERVICE_VERSIONOverride the OpenTelemetry service.version resource attribute.Auto-detected

Span Limits

VariableDescriptionDefault
HH_MAX_ATTRIBUTESMaximum number of attributes per span. Core HoneyHive attributes are preserved even when limits are reached.128
HH_MAX_EVENTSMaximum number of events per span.128
HH_MAX_LINKSMaximum number of links per span.128

Experiments

VariableDescriptionDefault
HH_EXPERIMENT_IDOverride the experiment ID.-
HH_EXPERIMENT_NAMEOverride the experiment name.-
HH_EXPERIMENT_VARIANTTag the experiment variant.-
HH_EXPERIMENT_GROUPTag the experiment group.-

Proxy

VariableDescriptionDefault
HH_HTTP_PROXYHTTP proxy URL for SDK requests. Falls back to standard HTTP_PROXY.-
HH_HTTPS_PROXYHTTPS proxy URL for SDK requests. Falls back to standard HTTPS_PROXY.-
HH_NO_PROXYComma-separated list of hosts to bypass the proxy. Falls back to standard NO_PROXY.-

Telemetry

VariableDescriptionDefault
HH_TELEMETRYEnable or disable SDK telemetry. Also accepts HONEYHIVE_TELEMETRY.true
All HH_* variables also accept a HONEYHIVE_* prefix (e.g., HONEYHIVE_API_KEY instead of HH_API_KEY). The SDK resolves both prefixes automatically. Where an additional alias exists (e.g., HONEYHIVE_SERVER_URL), it is noted in the table above.