Skip to main content
Netra uses the OpenTelemetry Protocol (OTLP) to export traces, making it compatible with any OTLP-compliant backend. This guide covers how to configure custom endpoints, authentication, and self-hosted setups.

OTLP Endpoint Configuration

Netra Cloud

By default, traces are sent to Netra’s cloud backend. Configure the endpoint and API key:
Or via environment variables:

Regional Endpoints

Netra provides regional endpoints for data residency requirements:
Regions are strictly separated, and no data is shared across regions. Choosing a region close to you can help improve speed and comply with local data residency laws and privacy regulations.

Custom Backend Configuration

Setting a Custom Endpoint

Point Netra to any OTLP-compatible backend:
Via environment variables:

Endpoint URL Formatting

Netra automatically formats the endpoint URL:
  • If the URL doesn’t end with /v1/traces, it’s appended automatically
  • Base URLs like https://collector.example.com become https://collector.example.com/v1/traces

Authentication Methods

API Key Authentication (Netra Cloud)

For Netra cloud endpoints, use the x-api-key header:

Bearer Token Authentication

For custom backends that use Bearer tokens:

Multiple Headers

Pass multiple headers using comma separation (W3C Correlation-Context format):

Automatic Authentication Detection

Netra automatically determines the authentication method based on the endpoint: This means for Netra cloud, you only need to provide the API key value:

Self-Hosted OpenTelemetry Collector

Basic Collector Setup

Deploy an OpenTelemetry Collector to receive traces from Netra:
Configure Netra to send to the collector:

Docker Compose Example

Kubernetes Deployment

Jaeger

Grafana Tempo

Datadog

New Relic

Honeycomb

Dual Export Setup

Send traces to both Netra and a custom backend:
Configure your application to send to the local collector:

Troubleshooting

Connection Issues

  1. Verify endpoint reachability
  2. Check authentication
    • Ensure API key or token is correct
    • Verify header format matches backend expectations
  3. Enable debug mode

Traces Not Appearing

  1. Disable batching for debugging
  2. Check collector logs
  3. Verify OTLP endpoint format
    • Ensure the endpoint accepts HTTP/protobuf
    • Check if /v1/traces path is correct

TLS/SSL Errors

For self-signed certificates in development:
Never use insecure: true in production. Configure proper TLS certificates instead.

Best Practices

  1. Use environment variables - Keep endpoints and credentials out of code.
  2. Deploy a collector - For production, use an OpenTelemetry Collector as a gateway rather than sending directly from applications.
  3. Enable batching - Keep disable_batch=False (default) for better performance.
  4. Monitor collector health - Set up health checks and metrics for your collector.
  5. Use regional endpoints - Choose the Netra endpoint closest to your infrastructure.

Next Steps

Last modified on March 17, 2026