Skip to main content
Netra SDK can be configured using environment variables, providing a flexible way to manage settings without modifying code. This section covers both Netra-specific and standard OpenTelemetry environment variables.

Netra-specific Variables

Netra provides its own set of environment variables for configuring SDK-specific settings:

Available Variables

OpenTelemetry Variables

Netra SDK also supports standard OpenTelemetry environment variables for compatibility:

Available Variables

Configuration Precedence

Configuration values are resolved in the following order (highest to lowest precedence):
  1. Code Parameters: Values passed directly to Netra.init()
  2. Netra Environment Variables: NETRA_* variables
  3. OpenTelemetry Environment Variables: Standard OTEL_* variables
  4. Default Values: Fallback values defined in the SDK
This allows you to:
  • Override any setting directly in code for maximum control
  • Use Netra-specific environment variables for Netra-specific settings
  • Fall back to standard OpenTelemetry variables for compatibility
  • Rely on sensible defaults when no other configuration is provided