# Transactions not showing Python APM

**URL:** <https://discuss.elastic.co/t/transactions-not-showing-python-apm/187471>\
**Category:** APM\
**Tags:** python\
**Created:** [June 26, 2019, 4:39am UTC](https://discuss.elastic.co/t/transactions-not-showing-python-apm/187471 "2019-06-26T04:39:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![srpecnik](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@srpecnik](https://discuss.elastic.co/u/srpecnik)\
**Post date:** [June 26, 2019, 4:39am UTC](https://discuss.elastic.co/t/transactions-not-showing-python-apm/187471/1 "2019-06-26T04:39:19Z")

</div>

Hi,

I've recently installed and configured the elastic apm server, and am now configuring instrumentation for our python application. We are not using flask or django, but I am under the impression that we should be able to [see tracing](https://www.elastic.co/guide/en/apm/agent/python/current/api.html#api-elasticapm-instrument) for our redis & postgres code via the instrumentation implemented in the [apm module](https://github.com/elastic/apm-agent-python/blob/master/elasticapm/instrumentation/register.py).

I have included the following code and am seeing metrics data in kibana, but no tracing. Is my understanding and implementation correct given the instrumentation of some standard and 3rd party libraries?

```
from elasticapm import Client
import elasticapm

client = Client(
{
  'SERVICE_NAME': 'my-service-name',

  'SERVER_URL': 'http://myapmserver:8200',

  'ELASTIC_APM_ENVIRONMENT': 'dev',

  'CAPTURE_BODY': all,
})
elasticapm.instrument()

```

**Kibana version** : 7.1.0

**Elasticsearch version** : 7.1.0

**APM Server version** : 4.1.0

**APM Agent language and version** : Python, 4.1.0

**Browser version** : Chrome

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

\*\*Fresh install or upgraded from other version?: Fresh Install

Thanks!

---

<div class="post-metadata">

**Author:** ![beniwohli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beniwohli/32/21256_2.png) [@beniwohli](https://discuss.elastic.co/u/beniwohli)\
**Post date:** [June 26, 2019, 8:05am UTC](https://discuss.elastic.co/t/transactions-not-showing-python-apm/187471/2 "2019-06-26T08:05:14Z")

</div>

Hi @srpecnik

if you don't use the Django or Flask integration, you need to tell the agent a few things manually to make it work. This [blog post](https://www.elastic.co/blog/creating-custom-framework-integrations-with-the-elastic-apm-python-agent) goes into some details. Let me know if that helps you or if you need more information!

Cheers  
Beni

---

<div class="post-metadata">

**Author:** ![srpecnik](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@srpecnik](https://discuss.elastic.co/u/srpecnik)\
**Post date:** [June 26, 2019, 2:44pm UTC](https://discuss.elastic.co/t/transactions-not-showing-python-apm/187471/3 "2019-06-26T14:44:56Z")

</div>

Hi @beniwohli,

This is exactly what I needed, thanks!

Scott

---

<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:** [July 17, 2019, 10:48am UTC](https://discuss.elastic.co/t/transactions-not-showing-python-apm/187471/4 "2019-07-17T10:48:00Z")

</div>

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