Commit Graph

1202 Commits

Author SHA1 Message Date
Tristan Sloughter 42e8f8f6e2
botocore: always use x-ray for http header injection (#1741)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-05-22 18:02:05 +00:00
OpenTelemetry Bot afd8428997
Update version to 1.19.0.dev/0.40b0.dev (#1797)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-05-17 10:47:58 -06:00
Shalev Roda 1a1163e919
Expand sqlalchemy pool.name to follow the semantic conventions (#1778) 2023-05-06 23:09:52 +05:30
Nahian-Al Hasan 890e5dd9b8
Add otelTraceSampled to instrumetation-logging (#1773)
* Add otelTraceSampled to instrumetation-logging

* Updated code with black

* Added to CHANGELOG.md

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-05-03 22:06:25 +05:30
Naor Malca 46e4b1da44
Add support for anonymous tasks (#1407) 2023-04-28 23:09:24 +00:00
Tammy Baylis f46a6e1c0e
Request ASGI attributes passed to Sampler (#1762)
* Request ASGI attributes passed to Sampler

* Update changelog

* aiohttp-client test http.url

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-04-28 16:47:51 +00:00
RJ Duffner c8b06539c0
Add support for pymemcache version > 4.0.0 (#1764) 2023-04-28 21:10:10 +05:30
Diego Hurtado 5117098024
Fix expected URL in aiohttp instrumentation test (#1772)
* WIP

* Revert "WIP"

This reverts commit 3ed466348e4c172fd96569a0dcb1b15047760cef.

* Fix expected URL in aiohttp instrumentation test

The underlying cause of the issue here is the update of the yarl package
from 1.8.2 to 1.9.1. yarl is used as a dependency in the
opentelemetry-instrumentation-aiohttp package but it is not there where
the issue happens, but in aiohttp who also has yarl as a dependency.

This is why the fix does not touch any relevant part of any
opentelemetry-* code, since it is the return value of aiohttp code who
now has a different value for the URL.

Fixes #1770
2023-04-25 11:44:11 -06:00
Nimrod Shlagman 19fe7713e2
Sanitize DB_STATEMENT by default for elasticsearch (#1758) 2023-04-23 22:55:05 +05:30
mshebeko-twist 2d4e6c9ac7
fix: None does not implement middleware when there are no middlewares (#1766) 2023-04-19 22:53:21 +05:30
Yaron d01c96fb42
added request and response hooks for grpc client (#1706) 2023-04-15 16:48:57 +05:30
Evan Pavlica a7a4f71570
Prevent AttributeError from being raised when lambda event is a list (#1738) 2023-04-05 00:23:21 +05:30
Stanley Liu e4d42e6632
Update runtime metrics to follow semantic conventions (#1735) 2023-04-04 01:54:35 +05:30
Rafael Muñoz 27d6706f90
Pass request attributes to Sampler in Django (#1730) 2023-03-31 19:34:57 +05:30
Leighton Chen 4e059b15d2
Add exclude_list for urllib/urllib3 instrumentations (#1733)
* urllib

* urllib3

* Update __init__.py

* readme

* lint
2023-03-30 19:10:23 -06:00
OpenTelemetry Bot e4d8f10ecd
Update version to 1.18.0.dev/0.39b0.dev (#1723) 2023-03-22 22:01:45 +05:30
Srikanth Chekuri 1f67dcfeec
Remove pinned version importlib-metadata (#1725) 2023-03-22 03:06:19 +05:30
Federico Bond 2629c12161
Implement request and response hooks in requests library instrumentation (#1717) 2023-03-16 21:24:10 +00:00
Rafael Muñoz fbec281553
Fix typo (#1721) 2023-03-16 11:38:13 +00:00
Rajashree Mandaogane 88783f9632
Allow Kafka producer headers to be dict or list (#1655)
* Allow Kafka producer headers to be dict or list

* modify kafka context getter helper methods to work on dict and list

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-03-10 12:59:05 +00:00
sam-mosleh 419975138b
Fix httpx resource warnings (#1695) 2023-03-08 11:54:32 +00:00
Akochavi e5d9ac5755
fix fastapi instrumentation tests for version 0.91 (#1710) 2023-03-07 20:29:24 +05:30
Leighton Chen 135280e539
Change instruments version for fastapi and starlette (#1708) 2023-03-06 10:34:22 -08:00
Rytis Bagdziunas 4a859e34d6
Remove custom arguments in object.__new__ of BaseInstrumentor (#1439)
* Add a test case to reproduce the issue

* Fix the class initialization when parameters are provided

* Update CHANGELOG.md

* Fix linting issues

* Additional test case which inits SystemMetricsInstrumentor twice

* Updated linting following update to black style

* Moved changelog entry to unreleased section

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2023-02-28 11:19:30 -06:00
Lucas Rangel Cezimbra d6a024302e
Fix AWS Lambda documentation (#1693)
Fix `ImportError: cannot import name 'AwsBotocoreInstrumentor' from 'opentelemetry.instrumentation.botocore'`

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-27 14:11:32 +00:00
Shalev Roda 7ffbfc302e
Add metrics instrumentation sqlalchemy (#1645) 2023-02-26 20:21:42 +05:30
danielwiltshire 0417141a70
Add support for enabling Redis sanitization from environment variable (#1690)
* Add support for enabling Redis sanitization from environment variable

* add sanitization environment variable docs

* strip environment variable

* update changelog

* lint

* lint

* lint - hopefully the last time

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-25 01:27:31 +00:00
Israël Hallé 85ae95c88f
Fix exception in Urllib3 when dealing with filelike body. (#1399) 2023-02-25 00:41:06 +00:00
Shalev Roda a7bd56354b
Change metrics test to work with base_test.py (#1688) 2023-02-25 03:35:45 +05:30
hangonlyra 74a8b902f1
Fix issue with Flask instrumentation when a request spawn children threads and copies the request context (#1654) 2023-02-22 21:37:59 +00:00
Bas Schoenmaeckers 3bcc043e9d
Add connection attributes to sqlalchemy connect span (#1608)
* Add connection attributes to sqlalchemy connect span

* Fix formatting

* Move changelog entry to unreleased section

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-02-20 17:17:18 +00:00
Nimrod Shlagman d5cbd67e88
Add boto3sqs to docs (#1666) 2023-02-20 21:51:13 +05:30
Akochavi aa6397ad59
Audit and test opentelemetry-instrumentation-elasticsearch NoOpTracer… (#1616)
* Audit and test opentelemetry-instrumentation-elasticsearch NoOpTracerProvider

* wip

* wip

* wip

* wip

* wip

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-18 02:07:07 +00:00
OpenTelemetry Bot 482804451a
Update version to 1.17.0.dev/0.38b0.dev (#1677)
* Update version to 1.17.0.dev/0.38b0.dev

* Update SHA

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-17 11:42:54 -06:00
Srikanth Chekuri 79d00ee7d3
Fix CI Failure (#1680)
* Fix CI Failure

* Actually fix

* Should be fixed now?

* Update tox.ini

* Disable test

* pypy3.7
2023-02-17 10:32:10 -06:00
Nimrod Shlagman 1e89854832
Add confluent kafka docs (#1668)
* add elasticsearch to docs

* add confluent kafka to docs

* tox generate fix

* tox docs fix

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-15 12:17:28 +00:00
Phillip Verheyden 5e4766ed66
Support aio_pika 9 (#1670) 2023-02-15 17:11:07 +05:30
Akochavi b513d1f910
Audit and test opentelemetry-instrumentation-wsgi NoOpTracerProvider (#1610) 2023-02-13 22:55:13 +00:00
Rajashree Mandaogane 3f8fdf2620
Add commit method for ConfluentKafkaInstrumentor's ProxiedConsumer (#1656) 2023-02-13 19:02:27 +00:00
Diego Hurtado b8d7448f34
Revert #1097 (#1660)
Several issues have arisen from this bugfix, reverting here until a
better solution can be found.

Fixes #1658

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-13 10:46:29 -06:00
Akochavi 7aa4aec3a6
Audit and test opentelemetry-instrumentation-django NoOpTracerProvider (#1611) 2023-02-13 15:01:48 +00:00
Akochavi 0a4b3b4a0c
Audit and test opentelemetry-instrumentation-aiohttp-client NoOpTrace… (#1612) 2023-02-13 11:00:24 +00:00
Akochavi 260df4dc6d
Audit and test opentelemetry-instrumentation-flask NoOpTracerProvider (#1614) 2023-02-13 09:49:17 +00:00
Akochavi e608df9357
Audit and test opentelemetry-instrumentation-dbapi NoOpTracerProvider (#1607) 2023-02-13 07:26:57 +00:00
Diego Hurtado bb41b4600a
Fix fastapi version (#1664) 2023-02-13 12:17:38 +05:30
avzis 3bcc9fb517
add a test for pymemcache using NoOpTracerProvider (#1650)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-11 15:11:22 +05:30
Nimrod Shlagman df32e8ca7f
add elasticsearch db.statement sanitization (#1598) 2023-02-10 06:20:42 +05:30
dbf 7af87e1bec
[TortoiseORM instrumentation] Fix `AttributeError: type object 'Config' has no attribute 'title'` (#1575)
* Use pydantic model name as default `title` value

* Update `CHANGELOG.md`

* Format with black

* Lint with `black`
2023-02-06 12:20:20 +00:00
Phillip Verheyden 66ceef5fe1
Support aio_pika 8.x (#1481)
* Support aio_pika 8

- Fix tests for new shape of the AbstractConnection class
- Run tests against aio_pika 7 and 8

* Update CHANGELOG.md

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-05 11:54:21 +05:30
Akochavi 2519223a5c
Audit and test opentelemetry-instrumentation-aiopg NoOpTracerProvider (#1606)
* Audit and test opentelemetry-instrumentation-aiopg NoOpTracerProvider

* Change line length

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-04 20:55:41 +00:00