# Springboot maven project - RUM & APM Traces are not having same trace id

**URL:** <https://discuss.elastic.co/t/springboot-maven-project-rum-apm-traces-are-not-having-same-trace-id/332924>\
**Category:** Elasticsearch\
**Created:** [May 9, 2023, 11:50am UTC](https://discuss.elastic.co/t/springboot-maven-project-rum-apm-traces-are-not-having-same-trace-id/332924 "2023-05-09T11:50:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratikshatiwari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratikshatiwari/32/116646_2.png) [@pratikshatiwari](https://discuss.elastic.co/u/pratikshatiwari)\
**Post date:** [May 9, 2023, 11:50am UTC](https://discuss.elastic.co/t/springboot-maven-project-rum-apm-traces-are-not-having-same-trace-id/332924/1 "2023-05-09T11:50:28Z")

</div>

hello team,

I came across the issue whee i am not getting same trace id for RUM & APM transaction.

E.g. i initiate the transaction "login" and i get the transaction detail in APM (service - springboot-consumer) & RUM (service - spring-boot) both but the transaction contains different trace id

kindly suggest what we can do to get the same trace id?

My infrastructure details as below:

Application Hosted on : Springboot (Maven)

RUM Configuration detail as below:

```auto
<script src="https://unpkg.com/@elastic/apm-rum@5.12.0/dist/bundles/elastic-apm-rum.umd.min.js" crossorigin="anonymous"></script>
<script>
elasticApm.init({
serviceName: 'spring-boot',
serverCert: "src\main\resources\ca.crt",
VerifyServerCert: false,
serverUrl: 'https://34.173.47.87:8200'
}) </script>

```

---

<div class="post-metadata">

**Author:** ![pratikshatiwari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratikshatiwari/32/116646_2.png) [@pratikshatiwari](https://discuss.elastic.co/u/pratikshatiwari)\
**Post date:** [May 9, 2023, 11:52am UTC](https://discuss.elastic.co/t/springboot-maven-project-rum-apm-traces-are-not-having-same-trace-id/332924/2 "2023-05-09T11:52:08Z")

</div>

hi @GregKalapos kindly suggest das i tried the similar solution i applied for asp dotnet core application but it is not working for springboot

---

<div class="post-metadata">

**Author:** ![pratikshatiwari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratikshatiwari/32/116646_2.png) [@pratikshatiwari](https://discuss.elastic.co/u/pratikshatiwari)\
**Post date:** [May 15, 2023, 1:23pm UTC](https://discuss.elastic.co/t/springboot-maven-project-rum-apm-traces-are-not-having-same-trace-id/332924/3 "2023-05-15T13:23:56Z")

</div>

hi any suggession will be helpful

---

<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:** [June 12, 2023, 1:24pm UTC](https://discuss.elastic.co/t/springboot-maven-project-rum-apm-traces-are-not-having-same-trace-id/332924/4 "2023-06-12T13:24:06Z")

</div>

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