206 Commits

Author SHA1 Message Date
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
d2984f5242 remove need to clone core repo (#678) 2021-09-27 20:28:32 +00:00
8e0d0e04a9 Falcon 3 support (#644) 2021-09-27 19:58:13 +00:00
efaa257a63 Add net.peer.ip in requests & urllib3 instrumentations. (#661) 2021-09-27 10:21:26 -07:00
2e77bfc555 Added a script to generate readme file for root instrumentations (#647)
directory

This file lists down all instrumentations and the packages+versions they
support. This is helpful to find out at a glance what is exactly
supported.

Co-authored-by: alrex <aboten@lightstep.com>
2021-09-02 01:33:02 +05:30
cc57aacd71 Improve reliability of tests (#643)
* Run tests on Windows in Github Actions

* core sha update

* format code

* fix ci yaml

* rebase

* lint

* Try without win+py3.6 fix

* Try without win+py3.6 fix

* Improve test reliability

Update some tests to use more deterministic methods of testing in memory
spans. This helps the core repo pass tests after adding Windows to CI
matrix.
2021-09-01 12:06:13 +02:00
c279ee59a8 Rerun a flaky test (#639)
* Rerun a flaky test
2021-08-31 03:47:58 +05:30
cc2529e2cd Fix tox lint command (#623)
* Fix tox lint command

- Move apt-get install command to github actions to run on an ubuntu
  system only. This keeps tox.ini cross-platform and enabled to run on
  non-ubuntu systems locally.
- Add `-y` flag to apt-get install command so it does not wait for
  configuration on CI.

* Downgrade pylint to 2.9.x

* Add pip cache to github actions cache
2021-08-25 02:48:23 +05:30
f878b834f8 add comment to tox (#621) 2021-08-13 13:28:04 -07:00
d14d888c71 disable elasticcachesearch7 (#619) 2021-08-12 10:45:01 -07:00
c8b6de6c1c Add support for SQLAlchemy 1.4 (#568) 2021-08-04 15:00:10 -07:00
278149553b Remove opentelemetry-instrumentation (#595)
Fixes #592
2021-07-19 09:19:48 -07:00
c100b21fa4 Require aiopg to be less than 1.3.0 (#560) 2021-07-01 14:01:25 -07:00
63e7561931 Update the psycopg2 dependency (#543) 2021-06-22 07:47:34 -07:00
c1fbe0e281 Fix tox build (#542) 2021-06-14 15:46:10 -07:00
4be32b542b Add create context key to contrib (#502) 2021-06-11 09:50:06 -07:00
865837f757 Ensure clean http url (#538) 2021-06-11 09:01:52 -07:00
9695bcfed3 Add support for HTTPX instrumentation (#461) 2021-06-08 08:28:03 -07:00
b2dd4b8205 Fix pyodbc cursor error in SQLA instrumentation (#469) 2021-06-07 09:11:37 -07:00
5d1f3201af Simplify bootstrap and generate code (#514)
- We now automatically generate bootstrap_gen.py file from the list of instrumentations present in the source tree.
- Bootstrap command now uses consumes this auto-generated list instead of keeping it's own local copy.
- We no longer uninstall packages before installing them as instrumentation package no longer specify libraries as dependencies so the edge cases are no longer there.
- We no longer try to install an incompatible version or force upgrade/downgrade an installed version. This used to leave systems in broken states which should happen no more.
2021-06-01 09:19:09 -07:00