# APM python agent stoped showing boto3 spans

**URL:** <https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559>\
**Category:** APM\
**Created:** [November 20, 2018, 1:29pm UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559 "2018-11-20T13:29:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmad\_Al-Masry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmad_al-masry/32/65270_2.png) [@Ahmad\_Al-Masry](https://discuss.elastic.co/u/Ahmad_Al-Masry)\
**Post date:** [November 20, 2018, 1:29pm UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/1 "2018-11-20T13:29:10Z")

</div>

Hi;  
We are using elastic cloud and we were using 6.4.3 and apm agent 3.0.3, then, the boto3 instrumentation went so well, but after we upgraded to 6.5.0 and apm agent 4.0.1 the distributed tracing went well but the boto3 instrumentation stopped working.

I do not know if they are related, but if we disabled the distributed tracing, will boto3 instrumentation return to work? If yes, how can we disable the distributed tracing.

Note: boto3 calls appear as GET with now argument of to 169.\* ip.

Thank you for your cooperation.

 ![33%20PM](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a4d0fdaac3b5bb0a699f8a338f545a1be4dae9c.png) ![55%20PM](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e26a0254e808cdabaafca8462566e047a8e7fd19.png)

---

<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:** [November 20, 2018, 4:15pm UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/2 "2018-11-20T16:15:44Z")

</div>

Hi @Ahmad_Al-Masry

Sorry about that! Distributed tracing definitely shouldn't break boto3 support. I'll investigate this and report back when I find the problem. To help me get started, can you tell me which version of boto3 and botocore you use?

---

<div class="post-metadata">

**Author:** ![Ahmad\_Al-Masry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmad_al-masry/32/65270_2.png) [@Ahmad\_Al-Masry](https://discuss.elastic.co/u/Ahmad_Al-Masry)\
**Post date:** [November 20, 2018, 4:40pm UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/3 "2018-11-20T16:40:14Z")

</div>

Hi;

We use the following both 1.4.1 and 1.4.4, both were working fine before the update.

And we use the following configs:

ELASTIC\_APM = {

'SERVICE\_NAME': 'lpm-aggregator',

'ENVIRONMENT': 'prod',

'CAPTURE\_BODY': 'error',

'DEBUG': False,

'INSTRUMENT': True,

}

INSTALLED\_APPS = [

.

.

.

'elasticapm.contrib.django',

.

.

.

]

MIDDLEWARE\_CLASSES = [

'elasticapm.contrib.django.middleware.TracingMiddleware',

.

.

.

]

These services are using uwsgi to run.

Thank you for your cooperation.

BR

---

<div class="post-metadata">

**Author:** ![Ahmad\_Al-Masry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmad_al-masry/32/65270_2.png) [@Ahmad\_Al-Masry](https://discuss.elastic.co/u/Ahmad_Al-Masry)\
**Post date:** [November 22, 2018, 8:41am UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/4 "2018-11-22T08:41:47Z")

</div>

Hi;  
Is there any misconfiguration from our side, or there is another issue?  
BR

---

<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:** [November 22, 2018, 9:00am UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/5 "2018-11-22T09:00:31Z")

</div>

I'm still investigating the issue. I added a test to our test suite that tests the full HTTP flow ([https://github.com/elastic/apm-agent-python/pull/341](https://github.com/elastic/apm-agent-python/pull/341)), and that seems to work, so there must be something else going on.

One thing that I would suggest is to upgrade boto3 and botocore to a more recent version if possible. Versions of boto3 before 1.8.0 vendored the requests module, which in turn vendored the urllib3 module, which makes things very complicated for us.

---

<div class="post-metadata">

**Author:** ![Ahmad\_Al-Masry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmad_al-masry/32/65270_2.png) [@Ahmad\_Al-Masry](https://discuss.elastic.co/u/Ahmad_Al-Masry)\
**Post date:** [November 22, 2018, 1:38pm UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/6 "2018-11-22T13:38:01Z")

</div>

Hi;  
We upgraded to 1.9.50 "Latest boto3" and the same problem.  
I want to note that it was running perfectly when we used apm agent 3.0.3 and elastic 6.4.3.  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Post date:** [November 29, 2018, 4:29pm UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/7 "2018-11-29T16:29:53Z")

</div>

I got same problem.  
I'm using boto3 1.9.50, apm python agent 3.0.4, and apm server 6.5.1.

---

<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:** [December 20, 2018, 12:30pm UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/8 "2018-12-20T12:30:00Z")

</div>

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

---

<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:** [January 2, 2019, 8:29am UTC](https://discuss.elastic.co/t/apm-python-agent-stoped-showing-boto3-spans/157559/9 "2019-01-02T08:29:05Z")

</div>

Hey everybody

turns out this was a bug in the agent ☹ sorry for not recognizing that earlier. It should be fixed in both 3.0.5 and 4.0.3 of the agent.
