2103 Commits

Author SHA1 Message Date
5a27946920 Add Emídio Neto as an approver (#2703) 2024-07-12 10:49:48 -07:00
b697f4ab9a opentelemetry-instrumentation-asgi: always set status code on duration attributes (#2627) 2024-07-12 09:38:40 -07:00
43dfc73c4c add sync and async test guide at contributing.md (#2694) 2024-07-11 09:34:59 -07:00
bbbe3ab7ab Add NoOpTracerProvider test for starlette (#2654) 2024-07-11 09:18:48 -07:00
60fb936b7e instrumentation/asyncio: catch CancelledError exception in tests (#2690)
* instrumentation/asyncio: catch CancelledError exception in tests

After a29242f49386c097defce500b138dc00f06ce300 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
0b20c955fa exporter/prometheus-remote-write: fix test requirements for pypy (#2692) 2024-07-10 10:31:35 -07:00
b1b9be0813 Fix lint-instrumentation-mysqlclient in tox.ini (#2691) 2024-07-10 10:20:44 -07:00
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
5ff46ac9d1 Move benchmarks outside of tests directory (#2670)
Fixes #2669
2024-07-09 17:17:00 -06:00
c8e529e437 Update CHANGELOG.md (#2665) 2024-07-09 09:55:16 -07:00
3518974d6e Fix typos in tox.ini (#2666) 2024-07-05 13:07:11 -06:00
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
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
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
fcc67514f5 Do not run benchmark tests in CI (#2660)
* Do not run benchmark tests in CI

Fixes #2659

* Add benchmark skip

* Update .github/workflows/test.yml

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-07-03 17:22:45 -06:00
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
7da7f554ea HTTP semantic convention stability migration for httpx (#2631) 2024-07-03 12:43:47 -07:00
c9bad6269c HTTP transition for asgi (#2610) 2024-07-03 11:19:34 -07:00
a3e457ca8c add opentelemetry-util-http to CI (#2655) 2024-07-03 11:00:27 -07:00
8821a95202 Test and lint opentelemetry-resource-detector-azure (#2651) 2024-07-03 10:51:42 -07:00
ef4bc9f9b4 fix(opentelemetry-instrumentation-asgi): Correct http.url attribute generation (#2477) 2024-07-03 10:28:54 -07:00
b16394b202 [opentelemetry-instrumentation-django] Handle exceptions from request/response hooks (#2153) 2024-07-02 11:41:55 -07:00
77749225b7 opentelemetry-processor-baggage: silence ruff warning (#2653) 2024-07-02 11:32:39 -07:00
90211489a3 Handle empty statement in psycopg instrumentation (#2644) 2024-07-02 09:05:41 -07:00
df3415b0dd Confluent Kafka: Ensure consume span is ended when consumer is closed (#2640) 2024-07-02 08:43:32 -07:00
a29242f493 fix(async-io): instrumented asyncio.wait_for properly raises asyncio.TimeoutError (#2637) 2024-07-02 08:21:15 -07:00
529178d9ae Fix wrong unit in Flask new semconv test (#2645) 2024-07-01 09:35:10 -07:00
58a6d3a79c conflent-kafka: Proxy producer purge (#2638) 2024-06-27 10:19:50 -07:00
7f7c0f31fe Use python baseline for pylint (#2636) 2024-06-26 12:35:11 -07:00
f531996f53 fix util-http package (#2634) 2024-06-26 09:34:04 -07:00
ff17c79c16 Update contributing guide and remove test instructions from readme (#2632) 2024-06-25 09:54:48 -07:00
3d758a973c instrumentation/system-metrics: permit to use psutil 6.0 (#2630) 2024-06-24 09:31:04 -07:00
919b2c295f CHANGELOG: remove spurious backtick (#2628)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-06-22 12:44:55 +03:00
593f86fd04 Adds NoOpTracerProvider test case for pymysql instrumentation (#2581) 2024-06-21 12:25:01 -07:00
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
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
a61739c9c2 bugfix: AWS Lambda event source key incorrect for SNS in instrumenta… (#2612) 2024-06-20 10:50:31 -07:00
41ca9027a8 instrumentation: drop dead code from aiohttp-client tests (#2625) 2024-06-20 10:42:48 -07:00
feed69bcc7 Upgrade Werkzeug library for testing (#2623) 2024-06-20 10:35:28 -07:00
fecb1e2862 Added recording of exceptions in Pyramid (#2622) 2024-06-20 10:19:20 -07:00
b776ac92a8 Update CONTRIBUTING.md (#2620) 2024-06-20 10:06:14 -07:00
3669b477bd requirements: Bump urllib3 to latest (#2618) 2024-06-20 09:26:01 -07:00
d93afc8773 Bump docs and dev requirements with dependabot security warnings (#2614) 2024-06-20 08:48:06 -07:00
4a75c535a7 boto: bump cryptography in test requirements (#2615) 2024-06-20 08:39:13 -07:00
b94c5906fd Use generated symbols from semantic conventions package (#2611) 2024-06-17 09:20:17 -07:00
daa84a6c63 instrumentation/tornado: bump to latest 6.4.1 in test-requirements (#2606) 2024-06-14 10:20:50 -07:00
91a69d4c99 aiohttp: bump aiohttp in test requirements to latest (#2607) 2024-06-14 10:11:24 -07:00
795c93376c instrumentation/pymysql: bump pymysql to 1.1.1 in test requirements (#2608) 2024-06-14 10:01:11 -07:00
6be205e604 consistently use of suppress_instrumentation utils (#2590) 2024-06-14 09:53:28 -07:00
881a179e3b Add xray propagators that prioritizes xray environment variable (#2573)
* Add AwsXrayLambdaPropagator

Fixes #2457

* Remove unnecessary AWS_TRACE_HEADER_PROP

* Add docstring

* Fix nit

* Add no environment variable test case

* Add test case for valid context

* Remove ipdb

* Fix lint

* Add missing entry point
2024-06-13 17:50:45 -06:00