# How to add labels in apm for python lamda to reflect in kibana

**URL:** <https://discuss.elastic.co/t/how-to-add-labels-in-apm-for-python-lamda-to-reflect-in-kibana/338665>\
**Category:** Elastic Agent\
**Created:** [July 18, 2023, 11:51am UTC](https://discuss.elastic.co/t/how-to-add-labels-in-apm-for-python-lamda-to-reflect-in-kibana/338665 "2023-07-18T11:51:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sairam\_kadakuntla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sairam_kadakuntla/32/122994_2.png) [@sairam\_kadakuntla](https://discuss.elastic.co/u/sairam_kadakuntla)\
**Post date:** [July 18, 2023, 11:51am UTC](https://discuss.elastic.co/t/how-to-add-labels-in-apm-for-python-lamda-to-reflect-in-kibana/338665/1 "2023-07-18T11:51:13Z")

</div>

i have created a elastic apm object like client = Client({  
'SERVICE\_NAME': os.environ.get("ELASTIC\_APM\_SERVICE\_NAME"),  
'SERVER\_URL': os.environ.get("ELASTIC\_APM\_LAMBDA\_APM\_SERVER")  
}) starting with client.begin\_transaction('schedule') now i need to add labels in many functions so as passing elastic apm to different functions then as passing apm object for 2 functions its reflecting other than that it showing label not found error

---

<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:** [August 15, 2023, 11:52am UTC](https://discuss.elastic.co/t/how-to-add-labels-in-apm-for-python-lamda-to-reflect-in-kibana/338665/2 "2023-08-15T11:52:03Z")

</div>

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