# Elastic APM OpenTelemetry Missing transaction.id on span. Not linking Stack Traces to Errors in Kibana UI

**URL:** <https://discuss.elastic.co/t/elastic-apm-opentelemetry-missing-transaction-id-on-span-not-linking-stack-traces-to-errors-in-kibana-ui/292904>\
**Category:** APM\
**Tags:** ui, open-telemetry\
**Created:** [December 24, 2021, 4:08pm UTC](https://discuss.elastic.co/t/elastic-apm-opentelemetry-missing-transaction-id-on-span-not-linking-stack-traces-to-errors-in-kibana-ui/292904 "2021-12-24T16:08:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [December 24, 2021, 4:08pm UTC](https://discuss.elastic.co/t/elastic-apm-opentelemetry-missing-transaction-id-on-span-not-linking-stack-traces-to-errors-in-kibana-ui/292904/1 "2021-12-24T16:08:54Z")

</div>

**Kibana version** : 7.16.2

**Elasticsearch version** : 7.16.2

**APM Server version** : 7.16.2

**APM Agent language and version** : [Jenkins OpenTelemetry Plugin](https://plugins.jenkins.io/opentelemetry) `1.0.1`

- `OpenTelemetry SDK to 1.7.1`

**Browser version** : N/A

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: ECK 1.9.1

**Fresh install or upgraded from other version?** : Upgrade

**Is there anything special in your setup?** Jenkins OTEL Plugin -\> APM Server (direct OTEL support) -\> Elasticsearch

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

It appears that `transaction.id` is missing from spans, so if there is an error in the timeline, then this error won't show up as the `transaction.id` is "Undefined".

Error at `Agent`:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/7/7758da7be49b52ab2315285b93cb4fa79c1a26ea.png)

Click `View related error`, and get taken to a blank page:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/7/570bc661069851bd93b314faf63e8992891fb18a.png)

If I remove ` and transaction.id : "undefined"`, I can see there are 3 errors in this trace:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/6/5623a4823424002708d8012a263dffd4ff6958f9.png)

If I go back a menu, and click on the span, the `Stack Trace` page is empty:

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

If I switch to the `Metadata` tab of `Span details`, there is no `transaction.id` only a `span.id`, `trace.id`, and `parent.id`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/f/4f67af175e3b99fbfd6d4d5e5dc3684443a893b3.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50f173c91760af09544f20eb5b0adfbabe900f04.png)

I'm not 100% if this is an error with the OpenTelemetry plugin in Jenkins or an issue with the APM Server OTEL integration, but according to this [doc](https://www.elastic.co/guide/en/observability/7.16/ci-cd-observability.html), nothing special should need to be done to get this integration working correctly.

Steps to reproduce:

1. Install OTEL plugin in Jenkins
2. Configure plugin to send to APM server
3. Configure a Jenkins pipeline to error
4. Run the pipeline
5. Get trace data in Elastic.
6. Attempt to view error data in trace
7. See that error doesn't have `transaction.id` associated with it, so therefore APM UI can't properly visualize it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 14, 2022, 12:09pm UTC](https://discuss.elastic.co/t/elastic-apm-opentelemetry-missing-transaction-id-on-span-not-linking-stack-traces-to-errors-in-kibana-ui/292904/2 "2022-01-14T12:09:10Z")

</div>

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