# How to integrate the "metrics" and "trace" data

**URL:** <https://discuss.elastic.co/t/how-to-integrate-the-metrics-and-trace-data/278841>\
**Category:** APM\
**Tags:** docker, go, server\
**Created:** [July 16, 2021, 2:20am UTC](https://discuss.elastic.co/t/how-to-integrate-the-metrics-and-trace-data/278841 "2021-07-16T02:20:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tttoad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tttoad/32/91162_2.png) [@tttoad](https://discuss.elastic.co/u/tttoad)\
**Post date:** [July 20, 2021, 12:37pm UTC](https://discuss.elastic.co/t/how-to-integrate-the-metrics-and-trace-data/278841/3 "2021-07-20T12:37:53Z")

</div>

The "trace" comes from "uber-jaeger-client -\> jaeger-agent -\> openTelemetry".  
"trace" information:

> [@How does the "jaeger client" data access "APM" via "OpenTelemetry"?](https://discuss.elastic.co/t/how-does-the-jaeger-client-data-access-apm-via-opentelemetry/278375):
>
> APM Server version 7.13.2 elasticSearch: 7.13.2 kibana: 7.13.2 Questions: 1.The error rate module in the Overview screen shows "No data to display", and the "Error rate" in the Transactions screen is N/A. How do I set this value? 2.The "server Map" looks normal, but the "Dependencies" of the "Overview" shows "No items found" 3.How do I set the "span type"? All the modules related to it show "No data to display" Step: 1.run apm,es,kibana: docker network create -d bridge my-jaeger-net docke…

The "metric" is crawling the service's port 9102 through the "prometheus\_simple" of "openTelemetry". The service exposes "metrics" data via "prometheus/client\_golang/prometheus".

```auto
import (
       "github.com/prometheus/client_golang/prometheus/promhttp"
       "net/http"
)
http.Handle("/metrics", promhttp.Handler())

```

The "lb" is our company abbreviation.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-integrate-the-metrics-and-trace-data/278841)._
