# How to maintain apm agent in Micro Frontend Architecture

**URL:** <https://discuss.elastic.co/t/how-to-maintain-apm-agent-in-micro-frontend-architecture/373314>\
**Category:** APM\
**Tags:** rum, ui, agent-explorer\
**Created:** [January 17, 2025, 6:02am UTC](https://discuss.elastic.co/t/how-to-maintain-apm-agent-in-micro-frontend-architecture/373314 "2025-01-17T06:02:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dv970406](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dv970406/32/140703_2.png) [@dv970406](https://discuss.elastic.co/u/dv970406)\
**Post date:** [January 17, 2025, 6:02am UTC](https://discuss.elastic.co/t/how-to-maintain-apm-agent-in-micro-frontend-architecture/373314/1 "2025-01-17T06:02:26Z")

</div>

I want to trace it while implementing social login, but I have some concerns in the process

My service is supposed to go to a third-party site by pressing the social login button on page A, and there is page B that lands as a callback on a third-party site.

To track my social login journey, I want to startTransaction and startSpan before entering a third-party site on page A, then go through a third-party site and bring the transaction that started on site A on page B to end the span and end the transaction.

In the process of returning to page B, the apm agent is initialized as it is refreshed, is there a way to get the startTransaction information from page A from page B?

If this doesn't work, I think it means that it can't be used for Micro Frontend Architecture. If you have a solution, please share it with me
