Commit Graph

1423 Commits

Author SHA1 Message Date
Riccardo Magliocchetti 60fb936b7e
instrumentation/asyncio: catch CancelledError exception in tests (#2690)
* instrumentation/asyncio: catch CancelledError exception in tests

After a29242f493 we are re-raising the
CancelledError so we need to catch it on the caller side.

Fix #2688

* instrument/asyncio: don't test anext on python < 3.10

Since it's not available there.

* instrumentation/asyncio: use unittest.skipIf instead of reimplementing it

---------

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2024-07-10 12:34:39 -06:00
Riccardo Magliocchetti 15fd1de93f
Bump certifi and zipp (#2689)
* requirements: bump zipp to 3.19.2

To resolve a dependabot securiy report.

* requirements: bump certifi to 2024.7.4

To resolve a dependabot security report.
2024-07-10 09:24:05 -06:00
Emídio Neto c4c9b6b9a1
Add capture to open file descriptors in system metrics instrumentation (#2652)
* add capture to open file descriptors in system metrics instrumentation

* fix meter type

* fix pypy test

* add changelog entry

* Update instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py

Co-authored-by: Leighton Chen <lechen@microsoft.com>

* remove runtiem prefix

* update tests

---------

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2024-07-05 11:40:19 -06:00
Diego Hurtado 75faaad986
Remove unnecessary dependencies (#2663)
* Remove unnecessary dependencies

Fixes #2661

* Separate runs

* Remove dev-requirements from test environment

* Try without negative if

* Remove positive if

* Remove if

* Separate benchmark-containing packages in another file

* Add missing test-requirements.txt file
2024-07-04 16:04:53 -06:00
Bart Vanbrabant c272e68774
Support cursor based queries (#2501)
* Support cursor based queries

* Add unit test

* Start of a test case

* Update tests

* Mock out all connection stuff

* Run black

* Fix typo

* Use old python

* Run black on the tests

* Add changelog

* Fix sorting

* Use python 3.8 as baseline

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-07-03 17:47:04 -06:00
Diego Hurtado a9247774c4
Point pylint to the package root directories (#2658)
* Point pylint to the root directories

Fixes #2657

* Use cd with instrumentations

* Do the same for the rest of the components

* Specify pylint configuration file

* Fix tox lint for sio-pika

* Fix commands for util-http and azure detector

* Fix lint for sdk-extension-aws

* Fix lint for opentelemetry-instrumentation

* Fix lint for grpc instrumentation

* Fix lint for opentelemetry-instrumentation
2024-07-03 16:22:00 -06:00
Emídio Neto 7da7f554ea
HTTP semantic convention stability migration for httpx (#2631) 2024-07-03 12:43:47 -07:00
Leighton Chen c9bad6269c
HTTP transition for asgi (#2610) 2024-07-03 11:19:34 -07:00
dhofstetter ef4bc9f9b4
fix(opentelemetry-instrumentation-asgi): Correct http.url attribute generation (#2477) 2024-07-03 10:28:54 -07:00
Eddie Bracho b16394b202
[opentelemetry-instrumentation-django] Handle exceptions from request/response hooks (#2153) 2024-07-02 11:41:55 -07:00
Hollis Wu 90211489a3
Handle empty statement in psycopg instrumentation (#2644) 2024-07-02 09:05:41 -07:00
joshschltelus df3415b0dd
Confluent Kafka: Ensure consume span is ended when consumer is closed (#2640) 2024-07-02 08:43:32 -07:00
Radoslav Kirilov a29242f493
fix(async-io): instrumented `asyncio.wait_for` properly raises `asyncio.TimeoutError` (#2637) 2024-07-02 08:21:15 -07:00
Emídio Neto 529178d9ae
Fix wrong unit in Flask new semconv test (#2645) 2024-07-01 09:35:10 -07:00
joshschltelus 58a6d3a79c
conflent-kafka: Proxy producer purge (#2638) 2024-06-27 10:19:50 -07:00
Riccardo Magliocchetti 3d758a973c
instrumentation/system-metrics: permit to use psutil 6.0 (#2630) 2024-06-24 09:31:04 -07:00
shwejan raj 593f86fd04
Adds NoOpTracerProvider test case for pymysql instrumentation (#2581) 2024-06-21 12:25:01 -07:00
Mathieu Pichette a166208616
confluent_kafka: extend instruments version declaration to include 2.4.0 (#2616)
* confluent_kafka: update instruments version declaration to include 2.4.0

* Adjust CHANGELOG.md with actual PR number

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-06-20 16:51:28 -06:00
Samuel Colvin f6ed62a7aa
Repeated headers list for ASGI frameworks (#2361)
* avoid loosing repeated HTTP headers

* fix fof wsgi, test in falcon

* add changelog

* add more tests

* linting

* fix falcon and flask

* remove unused test

* Use a list for repeated HTTP headers

* linting

* add changelog entry

* update docs and improve fastapi tests

* revert changes in wsgi based webframeworks

* fix linting

* Fix import path of typing symbols

---------

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-06-20 16:37:26 -06:00
Fools a61739c9c2
bugfix: AWS Lambda event source key incorrect for SNS in instrumenta… (#2612) 2024-06-20 10:50:31 -07:00
Riccardo Magliocchetti 41ca9027a8
instrumentation: drop dead code from aiohttp-client tests (#2625) 2024-06-20 10:42:48 -07:00
Rytis Bagdziunas feed69bcc7
Upgrade Werkzeug library for testing (#2623) 2024-06-20 10:35:28 -07:00
Rytis Bagdziunas fecb1e2862
Added recording of exceptions in Pyramid (#2622) 2024-06-20 10:19:20 -07:00
Riccardo Magliocchetti 3669b477bd
requirements: Bump urllib3 to latest (#2618) 2024-06-20 09:26:01 -07:00
Riccardo Magliocchetti 4a75c535a7
boto: bump cryptography in test requirements (#2615) 2024-06-20 08:39:13 -07:00
Leighton Chen b94c5906fd
Use generated symbols from semantic conventions package (#2611) 2024-06-17 09:20:17 -07:00
Riccardo Magliocchetti daa84a6c63
instrumentation/tornado: bump to latest 6.4.1 in test-requirements (#2606) 2024-06-14 10:20:50 -07:00
Riccardo Magliocchetti 91a69d4c99
aiohttp: bump aiohttp in test requirements to latest (#2607) 2024-06-14 10:11:24 -07:00
Riccardo Magliocchetti 795c93376c
instrumentation/pymysql: bump pymysql to 1.1.1 in test requirements (#2608) 2024-06-14 10:01:11 -07:00
Emídio Neto 6be205e604
consistently use of suppress_instrumentation utils (#2590) 2024-06-14 09:53:28 -07:00
Riccardo Magliocchetti 361da3e45e
botocore: bump moto to latest (#2605)
So we can bump Werkzeug too.
2024-06-13 16:56:04 -06:00
Riccardo Magliocchetti 477b73cd9a
requirements: bump requests to 2.32.3 (#2603) 2024-06-12 08:14:11 -07:00
Emídio Neto da78275a55
increase delta for fastapi flaky test (#2591) 2024-06-11 10:16:18 -07:00
Riccardo Magliocchetti af9675cf04
requirements: bump sqlparse to 0.5.0 (#2595) 2024-06-11 09:44:16 -07:00
Riccardo Magliocchetti 20e68e38e7
requirements: bump Jinja2 to 3.1.4 (#2593) 2024-06-11 09:18:56 -07:00
Riccardo Magliocchetti ab0ea0e0f9
Add support for python 3.12 (#2572) 2024-06-10 12:49:10 -07:00
Riccardo Magliocchetti 97621523b8
requirements: bump Werkzeug (#2594) 2024-06-10 09:08:14 -07:00
Riccardo Magliocchetti 3511ed180d
requirements: Bump idna to 3.7 (#2583) 2024-06-07 12:54:38 -07:00
Riccardo Magliocchetti bc4b0493b9
requirements: bump pytest to 7.4.4 (#2587) 2024-06-07 08:53:22 -07:00
Leighton Chen 5b841282ab
Do not use `asgi` name and version for tracer/meter for instrumentations using Asgi Middleware (#2580) 2024-06-06 12:52:32 -07:00
Riccardo Magliocchetti 95fea2bfa7
Fix running async psycopg tests (#2540) 2024-06-05 11:14:44 -07:00
Pavel Perestoronin ed51ebb312
feat(asgi,fastapi,starlette)!: provide both send and receive hooks with `scope` and `message` (#2546) 2024-06-03 10:18:47 -07:00
OpenTelemetry Bot 0db9dbe311
Update version to 1.26.0.dev/0.47b0.dev (#2568) 2024-05-30 18:48:51 -07:00
Rytis Bagdziunas dc711e870e
Ensure httpx non-client methods are instrumented (#2538)
* Ensure httpx non-client methods are instrumented

* Update changelog

* Added subTest to distinguish tests inside a loop

* Updated changelog

* Add a comment explaining private attribute usage

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-05-30 22:48:22 +00:00
Alexander Shadchin 728976fb10
Fix net peer attribute for unix socket connection (#2493) 2024-05-30 14:50:53 -07:00
dferrochio 41792e7bb3
Add confluent kafka producer poll and flush returns (#2527) 2024-05-30 14:27:35 -07:00
Emídio Neto 7bddbb5419
fix: remove dependency on sdk for system-metrics instrumentation (#2557) 2024-05-29 10:17:50 -07:00
Riccardo Magliocchetti bd9156fff8
Remove unrelated packages from test requirements (#2559)
* botocore: remove random packages from test-requirements

Refs #1736

* boto: remove random packages from test requirements

Refs #1736

* tox: re-enable boto3sqs tests with pypy3

* threading: remove confluent-kafka from test requirements
2024-05-29 09:56:27 -06:00
Riccardo Magliocchetti ac97b00457
Fix typos in test names (#2558) 2024-05-28 14:31:44 -07:00
Martin Stolle 88111d0a83
fix(requests): Fix wrong time unit for duration histogram (#2553) 2024-05-28 11:34:28 -07:00