# Applying APM Transaction labels to autogenerated spans (python)

**URL:** <https://discuss.elastic.co/t/applying-apm-transaction-labels-to-autogenerated-spans-python/272028>\
**Category:** APM\
**Tags:** python\
**Created:** [May 4, 2021, 12:58am UTC](https://discuss.elastic.co/t/applying-apm-transaction-labels-to-autogenerated-spans-python/272028 "2021-05-04T00:58:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Jimenez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_jimenez/32/34722_2.png) [@Rodrigo\_Jimenez](https://discuss.elastic.co/u/Rodrigo_Jimenez)\
**Post date:** [May 4, 2021, 12:58am UTC](https://discuss.elastic.co/t/applying-apm-transaction-labels-to-autogenerated-spans-python/272028/1 "2021-05-04T00:58:40Z")

</div>

I know this might have been asked before but is there any way to make autogenerated spans from custom code (no framework) inherit the same labels as their parent transactions with the python apm-agent?

Thanks!

---

<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:** [May 24, 2021, 8:59pm UTC](https://discuss.elastic.co/t/applying-apm-transaction-labels-to-autogenerated-spans-python/272028/2 "2021-05-24T20:59:26Z")

</div>

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