> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Send traces to EvalGate and your current tool

> Use an OpenTelemetry Collector to send the same spans to your existing observability vendor and to EvalGate, with no vendor credential stored in EvalGate.

# Send traces to EvalGate and your current tool

If your application already sends OpenTelemetry traces to an observability
vendor, you can keep that and add EvalGate as a second destination. An
[OpenTelemetry Collector](https://opentelemetry.io/docs/collector/) receives
your spans once and exports them to both. EvalGate never holds a credential
for your other vendor.

You need an EvalGate API key with the `traces:write` scope.

## Collector configuration

```yaml theme={null} theme={null}
receivers:
  otlp:
    protocols:
      http:
      grpc:

processors:
  batch:

exporters:
  # Your existing destination stays as it is.
  otlphttp/current_vendor:
    endpoint: https://otel.vendor.example
    headers:
      Authorization: Bearer ${env:VENDOR_API_KEY}

  # EvalGate's OTLP/HTTP intake. The exporter appends /v1/traces.
  otlphttp/evalgate:
    endpoint: https://www.evalgate.com/api/otel
    headers:
      Authorization: Bearer ${env:EVALGATE_API_KEY}

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp/current_vendor, otlphttp/evalgate]
```

Replace `otlphttp/current_vendor` with the exporter your vendor documents.
EvalGate accepts OTLP/HTTP with JSON or protobuf bodies, compressed or not.

## What EvalGate reads

EvalGate reads OpenTelemetry GenAI attributes (`gen_ai.operation.name`,
`gen_ai.request.model`, `gen_ai.usage.input_tokens`, `gen_ai.tool.name` and
related keys) and OpenInference attributes. Spans from several vendors' SDKs
are also recognised by their own attribute names; see
[Agent framework integrations](/docs/guides/agent-framework-integrations.md).

Traces sent this way are trace evidence. They are shown with their source and
never count as an EvalGate judge result or a release gate by themselves.

## Framework hooks without a collector

If you do not run a collector, two SDK hooks send framework traces straight
to EvalGate:

* [OpenAI Agents SDK](/docs/integrations/traces/openai-agents.md)
* [Mastra](/docs/integrations/traces/mastra.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.