# How to set up correlation between traces and logs using my custom attribute

**URL:** <https://community.grafana.com/t/how-to-set-up-correlation-between-traces-and-logs-using-my-custom-attribute/157402>\
**Category:** Grafana Tempo\
**Created:** [September 12, 2025, 6:15am UTC](https://community.grafana.com/t/how-to-set-up-correlation-between-traces-and-logs-using-my-custom-attribute/157402 "2025-09-12T06:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nosovaolgs](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@nosovaolgs](https://community.grafana.com/u/nosovaolgs)\
**Post date:** [September 12, 2025, 6:15am UTC](https://community.grafana.com/t/how-to-set-up-correlation-between-traces-and-logs-using-my-custom-attribute/157402/1 "2025-09-12T06:15:39Z")

</div>

I collect traces and logs from my applications and services. I introdused my custom correlationId. I created a label in loki for my correlationId and I have it as a span attribute.

How to set up the correlation? This is my set up in Adminitration → Plugins and data → Correlations

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/c/5/c54b64208548486357e664ab3551f798e092a3ca.png)

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/0/a/0a31e6c8520c334821f8f1c0ef5b64b8ace27041.png)

I expect to see a link in my span where I draw the ugly rectangle

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/8/b/8bf9ef28c557a9a9c840559da1f8150b6db51694.png)

Is this actually possible? How to achieve that?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [September 12, 2026, 6:15am UTC](https://community.grafana.com/t/how-to-set-up-correlation-between-traces-and-logs-using-my-custom-attribute/157402/2 "2026-09-12T06:15:47Z")

</div>

Closed on September 12, 2026, 6:15am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
