Skip to main content
Environment variables provide a way to configure Netra without modifying code. This is useful for managing different configurations across environments (development, staging, production) and for keeping sensitive values like API keys out of your codebase.

Netra Environment Variables

These variables are specific to the Netra SDK:

Authentication and Endpoint

Use the endpoint that matches your selected data region:

Application Identity

Tracing Behavior

Attribute Limits

Resource Attributes

OpenTelemetry Environment Variables

Netra also respects standard OpenTelemetry environment variables. These serve as fallbacks when Netra-specific variables are not set.

Configuration Precedence

When the same setting is configured in multiple places, Netra uses this priority order:
  1. Code parameters (highest priority)
  2. Netra environment variables
  3. OpenTelemetry environment variables
  4. Default values (lowest priority)

Example

Environment-Specific Configuration

Development

Staging

Production

Loading Environment Variables

Python

TypeScript/Node.js

Docker and Kubernetes

Docker

Docker Compose

Kubernetes

Complete Reference

Next Steps

Last modified on March 17, 2026