Skip to main content
Heimdall SDKs can be fully configured using environment variables. This is the recommended approach for production deployments.

Available Variables

Configuration Examples

Basic Setup

Set the required environment variables:
Then initialize the client without arguments:

Production Setup

For production environments, include service name and environment:

Development Setup

For local development with debug logging:

Disable Tracing

To completely disable tracing (useful for tests):
When disabled, all tracing decorators become no-ops and no data is sent.

Using .env Files

Python with python-dotenv

Node.js with dotenv

Priority Order

Configuration values are resolved in the following order (highest priority first):
  1. Explicit arguments passed to HeimdallClient()
  2. Environment variables
  3. Default values
This means you can override specific settings while using environment variables for the rest:

Docker Configuration

When running in Docker, pass environment variables using -e flags or an env file:
Or with docker-compose:

Kubernetes Configuration

Use ConfigMaps and Secrets for Kubernetes deployments:

Next Steps

SDK Options

Explore programmatic configuration options.

Quickstart

Get started with Heimdall.