225 Commits

Author SHA1 Message Date
530650df41 Resource detector for container properties (#1584)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2023-05-22 11:24:31 -06:00
db46e8eaab Skip requests tests for pypy3 (#1806) 2023-05-16 23:38:15 +05:30
c8b06539c0 Add support for pymemcache version > 4.0.0 (#1764) 2023-04-28 21:10:10 +05:30
5052190c13 skip instrumentation-boto* pypy env tests (#1737) 2023-03-30 17:52:07 -06:00
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
5e4766ed66 Support aio_pika 9 (#1670) 2023-02-15 17:11:07 +05:30
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
78874df5c2 Fix install of Python 3.10 on GitHub Actions (#1609)
* Fix install of Python 3.10 on GitHub Actions

In PR #1604 the Python version was upgraded to Python 3.10 to fix a
local issue on M1 MacBooks.

The GitHub Action workflows now exit with the following message for the
docker-tests, spellcheck and lint checks, skipping these checks.

```
lint create: /home/runner/work/opentelemetry-python-contrib/opentelemetry-python-contrib/.tox/lint
SKIPPED: InterpreterNotFound: python3.10
___________________________________ summary ____________________________________
SKIPPED:  lint: InterpreterNotFound: python3.10
  congratulations :)
```

Upgrade the Python version in the GitHub Actions workflow to fix this.

* Fix YAML interpretation of Python 3.10

* Upgrade Docker tests dependencies

Upgrade the asyncpg and psycopg2 packages, they don't work on Python
3.10.

This also fixes running these tests no M1 MacBooks.

* Fix linter issues merged into main

They went unnoticed while the CI didn't fail on the lint task not
working.

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-03 08:37:24 +05:30
a300d65ccf Update some environments to 3.10 (#1604)
Fixes #1603
2023-01-28 03:57:38 +05:30
cca90db86f add aio_pika to tox (#1590) 2023-01-21 10:45:12 +05:30
a8f86f6fc7 Modified tox.ini to fix the comment line (#1588) 2023-01-20 18:50:08 +00:00
25a6535f26 Instrument newer versions (#1468) 2022-12-06 15:58:03 +00:00
b6b269064c Tortoise ORM instrumentation (#685) 2022-11-22 02:33:59 +00:00
40e4e2e598 Fix dbapi connection instrument wrapper has no _sock member (#1424)
Fixes https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1353

Also:

Fix the check for the connection already being instrumented in instrument_connection()
Add tests for commit() and rollback()
Add a couple missing docstring items.
Add basepython to docker-tests to fix running the tests on macOS.
2022-11-07 16:00:28 +00:00
f58d16b47f Add grpc.aio support (#1245) 2022-10-31 21:56:09 +00:00
38d384a2ae Add support for py3.11 (#1415) 2022-10-31 21:19:50 +00:00
0dc16a4118 Update prom rw exporter (#1359) 2022-11-01 01:30:32 +05:30
6753c872d2 Update tooling (#1330) 2022-09-15 23:42:49 +05:30
09b509d92d Use PEP 517 builds for tox (#1318) 2022-09-07 17:58:20 +00:00
18e056b85a Codespell ci (#1237) 2022-08-29 15:08:25 +05:30
03d97ffaf9 Remove support for 3.6 (#853) 2022-08-25 23:32:04 +05:30
f48b3136c4 boto3sqs: Make propagation compatible with other instrumentations and add 'messaging.url' span attribute (#1234)
* boto3sqs: Fix various issues

* do not use 'otel' prefix for propagation keys to make propagation
  compatible with other SQS instrumentations like Node.Js
  Inject propergator.fields keys into the MessageAttributeNames argument
  for 'receive_message' calls to retreive the corresponding message attributes
* add 'messaging.url' span attribute to SQS spans
* add boto3sqs instrumentation to tox.ini to run tests in CI
* add some basic unit tests

* changelog

* fix linting issues

* unset instrumented flag on uninstrument
2022-08-23 09:29:58 +02:00
8823655b1c Instrument RedisCluster clients (#1177)
* Instrument RedisCluster clients

* reformat files

* update changelogs

* refactor _traced_execute_pipeline

* handle AttributeError

* handle IndexError

* refactor _traced_execute_pipeline

* move hasattr check to _set_connection_attributes function

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-07-07 15:00:09 +02:00
ff412c6d40 Added aio-pika instrumentation (#1095) 2022-07-02 19:10:09 +05:30
5f7c293e0f Add instrumentation for remoulade (#1082) 2022-05-31 14:05:41 -07:00
9d57a4c3ec Narrow protobuf dependency to exclude protobuf >= 4 (#1109) 2022-05-27 01:18:24 +05:30
fa56c6c09f Instrument redis.asyncio clients (#1076) 2022-05-05 06:39:29 +05:30
328e16f3f1 Remove datadog exporter from tox (#1069) 2022-04-22 01:38:13 +05:30
abdd25f644 Add falcon version 1.4.1 support to opentelemetry-instrumentation-falcon (#1000) 2022-04-16 01:54:22 +05:30
40c1805b11 opentelemetry-instrumentation-system-metrics restore package (#1012) 2022-04-06 10:54:22 -07:00
b8cad79113 Update pymemcache instrumentation to support pymemcache version >= 1.3.5 (#935) 2022-04-06 08:55:51 -07:00
2f74c9021c Add opentelemetry-contrib-instrumentations meta package (#681) 2022-03-16 18:02:44 -06:00
0b9e96dae0 Support newer httpx versions (#866) 2022-02-04 09:07:31 -08:00
2189e81da1 feat: support pymongo v4.0 (#876) 2022-02-01 17:16:16 +05:30
e67a728be5 kafka-python instrumentation (#814) 2022-01-10 09:55:52 -08:00
26aa17f8e9 Support older pika versions (#837)
* feat: support older pika versions

* update tox.ini

* update changelog

* take version from pika

* avoid exception when property name changes

* add callback attr name test
2021-12-26 03:03:22 +05:30
f0ac738ee1 Fix a logic bug on parentless spans (#782)
* Fix a logic bug on parentless spans

* Add a test

* Simplify logic

* Add changelog entry

* Update tox configuration

* Rename the fixtures to keep pylint happy
2021-11-19 17:25:33 +05:30
7cf29b4000 Rename opentelemetry-test to opentelemetry-test-utils (#807)
* updating changelogs and version to 1.7.0-0.26b0

* Rename opentelemetry-test to opentelemetry-test-utils
2021-11-11 19:11:12 +00:00
43bc7809e4 Fixed opentelemetry-test package subdir name (#804) 2021-11-11 07:48:51 -06:00
2f9bcb230a Update core opentelemetry-tests subdirectory (#801) 2021-11-11 03:38:48 +05:30
0c083ff6ea Support PyMySQL 1.x series (#792)
Fixes #791
2021-11-06 17:18:50 +05:30
671aea32f9 Add instrumentation for AWS Lambda Service - Implementation (Part 2/2) (#777)
* Add instrumentation for AWS Lambda Service - Implementation

* Lambda is CONSUMER SQS trace if 'Records' key in Lambda event

* More robust check of SQS by indexing and catching

* Explicitly catch errors we expect when determinig if SQS triggered Lambda
2021-11-01 20:02:58 +05:30
9dc3bbb8dc django: Fix instrumentation and tests for all Django major versions (#780) 2021-10-28 13:52:36 -07:00
335a14c682 adding CI testing for python 3.10 (#742) 2021-10-26 21:43:23 +00:00
3a78439307 falcon: Drop support for Python 3.4 (#774)
Remove unwanted support for Python versions <3.6.
This integration mistakenly lists Python 3.4 support, because it was
merged in
https://github.com/open-telemetry/opentelemetry-python/pull/1039,
after the merge of
https://github.com/open-telemetry/opentelemetry-python/pull/1099, so the
latter didn't consider `falcon`.

Python 3.4 is broken nevertheless, as this integration already includes
f-strings and other `opentelemetry` dependencies, which require Python 3.6.

Fixes #772.
2021-10-25 20:55:09 +05:30
7cf3cb42cf Add instrumentation and distro packages (#738)
Now that SDK does not depend on opentelemetry-instrumentation
anymore and opentelemetry-instrumentation has actual build time
dependencies on the contrib repo, it makes maintanence a lot
easier if we move opentelemetry-instrumentation to contrib repo.
opentelemetry-distro depends on opentelemetry-instrumentation
and is being moved as well. Neither of the two packages are
really part of "core" Otel python anyway.
2021-10-14 20:35:28 +00:00
5105820fff Add Django ASGI support (#391) 2021-10-12 10:28:03 -07:00
224780f38d Move AWS X-Ray Propagator into its own package (#720)
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-10-12 15:44:03 +00:00
fb24599324 Feature/add pika instrumentation (#680)
* Added initial code

* Add all needed spans, and add support of instrumentation and uninstrumentation

* Added tests. Ready for PR

* Rename RequestsInstrumentation to RequestsInstrumentor to follow conventions

* Add suppress_instrumentation functionality

* Fix suppress_instrumentation functionality

* Fix CR comments and lint test failures

* Add usage of wrapt according to CR comments

* Fix according to CR Comments

* Move the tracer to be an attribute of the instrumentor instead of the channel

* Fix Tests

* Update Changelog and fix failing test

* update code using tox -e generate

* Update the name of the variable to store the tracer provider.

* Update the core repo hash in the workflow

* Update the core repo hash in the workflow

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2021-10-06 23:52:39 +05:30
2710e25b78 add Python 3.9 to setup.cfg template (#698) 2021-09-28 17:26:18 +00:00