Skip to main content
This guide explains how to send distributed traces to Metoro using OpenTelemetry. Metoro supports the OpenTelemetry Protocol (OTLP) for trace ingestion, allowing you to send traces from any application or service that can export OpenTelemetry traces.

Prerequisites

  • A Metoro account
  • An application configured with OpenTelemetry

Pricing

Custom traces are billed at $0.30 per GB.

High Level Overview

The Metoro exporter running in each cluster accepts traces over OTLP/HTTP using protobuf or JSON payloads. The standard environment-variable configuration below uses the http/protobuf protocol.

Endpoint Configuration

Use the following OTLP base URL when your SDK or collector automatically appends the signal-specific path:
Alternatively, use the full traces endpoint when configuring a signal-specific URL:
These endpoints use OTLP over HTTP and are available within the Kubernetes cluster where the Metoro exporter is installed. The Metoro exporter does not expose an OTLP/gRPC endpoint.

Authentication

No additional authentication is required when sending traces from within the cluster to the Metoro exporter.

OpenTelemetry Collector Configuration

If you’re using the OpenTelemetry Collector to forward traces to Metoro, here’s an example configuration:
This configuration:
  • Receives traces via OTLP over both HTTP (4318) and gRPC (4317)
  • Batches traces for efficient transmission
  • Forwards traces to the Metoro exporter via OTLP/HTTP
Ports 4317 and 4318 belong to the collector configured in this example. The collector forwards telemetry to the Metoro exporter through its in-cluster HTTP service.

Language-Specific Examples

Go

Python

Node.js

Via environment variables

Most OpenTelemetry SDKs support the generic OTLP environment variables. The SDK appends /v1/traces to the base URL:

Inspecting otel traces

You can use otel traces just like any other trace type. Just search for span attributes. If you want to see all non ebpf traces you can copy the following filter into the trace search, or click the following link: filters applied.

Attributes and Context

When sending traces via OpenTelemetry, you can include additional attributes that will be searchable in Metoro:
  • Use resource attributes to define static information about the service
  • Use span attributes to include dynamic information with each span
  • Link spans with logs using trace context propagation
  • Add custom attributes to spans for business-specific data

Troubleshooting

If you encounter issues with OpenTelemetry trace ingestion:
  1. Verify your endpoint URL is correct
  2. Check your network connectivity to the Metoro OTLP endpoint
  3. Enable debug logging in your OpenTelemetry SDK
  4. Verify your traces appear in the Metoro traces view
  5. Contact support if issues persist

Additional Resources