---
title: Trace Metrics
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > OpenTelemetry in Datadog > Integrations > Trace Metrics
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Trace Metrics

## Overview{% #overview %}

{% image
   source="https://docs.dd-static.net/images/opentelemetry/collector_exporter/trace_metrics.50651fc46c1bdd28ef8786711c1cc577.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/opentelemetry/collector_exporter/trace_metrics.50651fc46c1bdd28ef8786711c1cc577.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="APM metrics from OpenTelemetry" /%}

To send APM stats such as hits, errors, and duration, set up the [`span_metrics` connector](https://docs.datadoghq.com/opentelemetry/setup/collector_exporter.md#span-metrics-connector). Configure the connector to receive all traces before any sampling processors so that trace metrics represent unsampled traffic.

## Setup{% #setup %}

Select your environment in the [recommended Collector setup](https://docs.datadoghq.com/opentelemetry/setup/collector_exporter.md#span-metrics-connector) and use its complete `span_metrics` connector block. Retain all of its dimensions, which Datadog uses to derive host tags, peer services, operation names, and resource names.

## Data collected{% #data-collected %}

See [Trace Metrics](https://docs.datadoghq.com/tracing/metrics/metrics_namespace.md).

## Full example configuration{% #full-example-configuration %}

For full working example files, see the [`opentelemetry-examples` repository](https://github.com/DataDog/opentelemetry-examples/tree/be842bc1447337c32f2d6265612232932a6cdbfd/configurations/opentelemetry-collector).

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Getting Started with Collector](https://docs.datadoghq.com/opentelemetry/collector_exporter.md)
- [Mapping OpenTelemetry Semantic Conventions to Service-entry Spans](https://docs.datadoghq.com/opentelemetry/guide/service_entry_spans_mapping.md)
