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
Context Propagation
Netra stores
session_id, user_id, and tenant_id as W3C baggage. The Python SDK’s httpx and requests instrumentations remove the baggage header from outbound requests unless the destination host is on this list, so these identifiers are not sent to third-party APIs such as LLM providers. Trace context (traceparent and tracestate) is sent to every host.
- An entry matches the host itself and its subdomains:
mycorp.netmatchesapi.mycorp.netbut notnotmycorp.net. - Matching is case-insensitive, and a leading dot is ignored (
.mycorp.netis the same asmycorp.net). - The variable is read when
Netra.init()runs. It has noNetra.init()parameter.
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:-
Code parameters (highest priority)
-
Netra environment variables
-
OpenTelemetry environment variables
- 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
- Initialization - Programmatic configuration
- Instrumentation Selection - Control which libraries are traced
- Custom Exporters - Send traces to custom backends
