1919 Commits

Author SHA1 Message Date
223c79c617 Remove [test] package from mysqlclient instrumentation (#2295)
Fixes #2208
2024-03-15 23:37:18 -06:00
8f02162221 Remove [test] package from elasticsearch configuration (#2312)
Fixes #3745
2024-03-15 15:26:38 -06:00
0b5e3b4bcd Remove [test] package from pymemcache instrumentation (#2310)
Fixes #2211
2024-03-15 15:08:03 -06:00
e30dd1abeb Remove [test] package from urllib3 instrumentation (#2316)
Fixes #2226
2024-03-15 14:49:03 -06:00
74820251f1 Remove [test] package from urllib instrumentation (#2282)
Fixes #2225
2024-03-15 14:33:49 -06:00
fbda226a5a Remove [test] package from requests instrumentation (#2276)
Fixes #2217
2024-03-15 14:10:12 -06:00
d1c3cb33dc Remove [test] package from httpx instrumentation (#2314)
Fixes #2203
2024-03-15 12:39:51 -06:00
28f49a56e4 Remove [test] package from aiohttp-server instrumentation (#2242)
Fixes #2184
2024-03-15 17:37:21 +00:00
17de1d5765 Remove [test] package from aiohttp-client instrumentation (#2238)
Fixes #2183
2024-03-15 11:16:35 -06:00
8d43618798 Remove [test] package from tornado instrumentation (#2280)
Fixes #2223
2024-03-15 16:50:17 +00:00
7404e69663 Remove [test] package from fastapi instrumentation (#2289)
Fixes #2201
2024-03-15 16:38:56 +00:00
fd6b8f1647 Fix response hook (#2038)
Response hook receives a third parameter, Response, and that should be reflected in the _ResponseHook type

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-03-15 14:07:40 +02:00
e923938646 Remove [test] package from starlette instrumentation (#2278)
Fixes #2221
2024-03-15 01:53:17 +00:00
e56cdc8fec Remove [test] package from pyramid instrumentation (#2273)
Fixes #2214
2024-03-14 19:29:18 -06:00
ba05c2c0c3 Remove [test] package from wsgi instrumentation (#2283)
Fixes #2227
2024-03-15 01:15:50 +00:00
ce2de1f5a9 Remove [test] package from falcon instrumentation (#2313)
Fixes #2200
2024-03-14 19:05:44 -06:00
5f68e9701b Remove [test] package for django instrumentation (#2311)
Fixes #2198
2024-03-15 00:54:12 +00:00
d948f21ad3 Remove [test] package from flask instrumentation (#2127)
Fixes #2126
2024-03-15 00:42:46 +00:00
5552db2adf Remove [test] package from asyncio instrumentation (#2248)
Fixes #2188
2024-03-14 18:32:23 -06:00
1bf9f429e4 Remove [test] package from asgi instrumentation (#2247)
Fixes #2187
2024-03-14 18:18:52 -06:00
2417c099a0 Remove [test] package from aio-pika instrumentation (#2244)
Fixes #2186
2024-03-15 00:07:12 +00:00
c54a9d1ad2 Remove [test] package from aiopg instrumentation (#2243)
Fixes #2185
2024-03-14 17:57:38 -06:00
5b4e5d810a Remove [test] package from opentelemetry-contrib-instrumentations (#2318)
Fixes #2236
2024-03-14 23:43:20 +00:00
717d10760a feat: add importlib metadata default on flask module (#2302)
* feat: add importlib metadata default

* feat: add importlib metadata default

* feat: add importlib metadata default

* Fix lint

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-03-14 15:56:32 -06:00
3273d8c39f Fix asyncio related warnings in tests (#2335)
* aiopg: fix runtime warnings when running tests

Fixes:
RuntimeWarning: coroutine 'MockCursor.execute' was never awaited
    cursor.execute(query)

* aio-pika: no need to return an awaitable in mocked method

No need to return an awaitable since the mocked method awaits
itself.
Fixes:
    RuntimeWarning: coroutine 'sleep' was never awaited

---------

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2024-03-14 13:27:18 -06:00
9b3d0b485e Use set -e to catch errors in all scripts (#2347) 2024-03-14 17:29:38 +00:00
af1528d288 chore: fix md based on rules and fix bad links (#2240)
* chore: fix md based on rules and fix bad links

* chore: add index to contribuiting and readme files

---------

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-03-14 11:36:54 +02:00
aa8ae2efe3 Celery duplicated instrumentation (#2342)
* * Adding (failing) testcase to cover Issue #2029

* * move Instance variables to class variables. Since the object in question will be a singelton. This will resolve #2029 where multiple calls to the instrumentation will assign Null values.

* * black formatting

* * Changelog stub entry, PR # to follow

* * updating the pullrequest number

* * remove superfluous constructor

* * moving Change log to unreleased section

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-03-14 10:50:04 +02:00
1e0b11f07a Fix docker test dependencies (#2345)
Fixes #2344
2024-03-13 16:33:47 -06:00
cb5a07c765 Update README.rst (#2111)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2024-03-13 14:05:31 +02:00
565e78de2c Fix OpenTelemetry Aio-pika instrumentation link (#2259) 2024-03-07 11:56:04 -08:00
2e746198bf Align gRPC server span status codes to OTEL specs (#2019) 2024-03-07 09:33:28 -08:00
46a8c59e03 Refactor use of changedir in tox.ini (#2332)
Fixes #3745
2024-03-04 11:19:46 -06:00
8daa8ad481 Add instrumentation for Psycopg 3.x (#2123)
* Add instrumentation for Psycopg 3.x

* Add federicobond to component_owners.yml
2024-02-24 19:35:25 +00:00
1c2171528e Fix various release scripts aspects (#2267) 2024-02-23 10:50:39 -08:00
adfb1c763d Copy change log updates from release/v1.23.x-0.44bx (#2265) 2024-02-23 10:30:37 -08:00
d2d4561593 Update version to 1.24.0.dev/0.45b0.dev (#2262) 2024-02-23 10:13:21 -08:00
343d137f95 Skipping certain folders in release script (#2258) 2024-02-22 16:12:38 -08:00
565d2e33f4 Remove werkzeug from Flask instrumentation dependencies (#2257)
Fixes #2256
2024-02-22 17:34:53 -06:00
efb327d4d7 AwsLambdaInstrumentor handles and re-raises handler function exception (#2245) 2024-02-22 09:16:34 -08:00
2518a4ac07 Drop obsolete parameterized test dependency (#2134)
In the test dependencies for `opentelemetry-instrumentation-falcon`,
don’t depend on `parametrized` because `pytest.mark.parametrize` is now
included in `pytest`.
2024-02-14 22:21:14 -06:00
b6492a7999 Feature/asyncio instrumentation (#1943)
* add asyncio instrumentation

* add asyncio instrumentation

* modify test configure

* modify test configure

* modify tox generate result

* modify tox generate result

* add python version check

* modify test code

* add CHANGELOG.md

* add docs

* modify pyproject.toml

* modify pyproject.toml

* Add comments mentioned in an issue #1919

* Add comments mentioned in an issue #1919

* add asyncio component owner

* - Add instrumentation-asyncio metric.
- Configure coroutines/to_thread func to apply trace via environment variables.
- Apply trace to future using a boolean environment variable.

* modify docs

* modify docs

* modify docs

* modify docs

* modify docs

* modify test_code

* modify test_code

* modify test_code

* modify asyncio version

* modify asyncio version

* update dependency

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* include feedback

* include feedback

* include feedback

* modify docs test results

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/utils.py

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/utils.py

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* include feedback

* include feedback

* drop python 3.7 support

* drop python 3.7 support

* Removed from default_instrumentations

* Recover

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
2024-02-14 15:44:17 -06:00
02e38edc54 Fix azure vm resource detector tests/Suppress instrumentation for urllib call (#2178) 2024-02-14 12:51:27 -08:00
1a984d3ba1 Upgrade tox (#2118)
* Upgrade tox

* fixup! Upgrade tox

* Add excludes

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-02-13 22:33:14 -06:00
03fcc1742d Remove references to 3.7 (#2172)
Fixes #2171
2024-02-13 12:55:45 -06:00
d167ef7b43 Fix celery and urllib tests (#2170)
* Update core SHA

Fixes #2173

* Fix celery and urllib tests

Fixes #2164
2024-02-12 17:54:32 -06:00
8fd2105cea Update core SHA (#2163)
Fxes #2162
2024-02-10 07:02:35 -06:00
47caeab7af Stop multiple calls to AsyncPGInstrumentor.__init__ from clobbering instance attributes (#1791)
* Stop multiple calls to AsyncPGInstrumentor.__init__ from clobbering instance tracer attribute

* Remove class-level initialisation of _tracer

* Fix regex

* Add to changelog

* Fix lint errors

* Update CHANGELOG.md

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>

* Set tracer in class definition to avoid lint error

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-02-05 13:55:24 +02:00
13ce910f14 Fix link to OpenTelemetry kafka-python Instrumentation (#2147)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-02-04 09:26:49 +00:00
6c13a5eddc Drop support for 3.7 (#2152)
* Drop support for 3.7

Fixes #2151

* Remove 37
2024-02-03 11:57:08 -06:00