Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (21 loc) · 1018 Bytes

using-opentelemetry-collector.md

File metadata and controls

26 lines (21 loc) · 1018 Bytes
description
Export to Aspecto Collector from your own OpenTelemetry Collector

Using OpenTelemetry Collector

If you already have your own OpenTelemetry Collector and want to export your traces to Aspecto, you'd need to add a new otlphttp exporter in your config.yml, with Aspecto API-Key as your Authorization header:

exporters:
  otlphttp:
    endpoint: https://otelcol.aspecto.io
    headers:
      Authorization: <aspecto-api-key>
    
service:
  pipelines:
    traces:
      receivers: [...]
      processors: [...]
      exporters: [otlphttp, ...]

{% hint style="info" %} The minimum required for our collector to accept your traces is to have the service.name resource attribute on your spans and pass the Aspecto API-Key, either through aspecto.token resource attribute, or through the Authorization HTTP header when making a request to our collector. {% endhint %}