2126 Commits

Author SHA1 Message Date
1a01be22f0 Update SHA 2024-07-24 20:17:07 -06:00
a47810c2a2 Enable global propagator for AWS instrumentation (#2599)
* Enable global propagator for AWS instrumentation

Fixes #2598

* Add entry point test case

* Update instrumentation/opentelemetry-instrumentation-aws-lambda/pyproject.toml

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

* Add test for propagator

* Fix entry point name

* Update instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

* Try with ubuntu latest

* Try with 24.04

* Fix propagator key

* Fix lint

* Revert ununtuns

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2024-07-24 14:55:21 -06:00
e799a74bbe fix schema url in instrumentation tests (#2730)
* fix schema url in instrumentation tests

* change core repo sha for test

* Update CORE_REPO_SHA

* Try removing cache

* Clear cache here as well

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-07-23 17:09:30 -06:00
92da527977 HTTP semantic convention stability migration for urllib3 (#2715) 2024-07-23 10:09:11 -07:00
38e4ea4a24 Teach fastapi instrumentation about fastapi-slim (#2702) 2024-07-23 09:31:33 -07:00
CC
948b47d43c Add NoOpTraceProvider test for opentelemetry-instrumentation-logging (#2649) 2024-07-23 08:54:01 -07:00
cc52bd2729 Fix http clients method attribute in case of non standard http methods (#2726) 2024-07-22 12:56:22 -07:00
910d5ec281 HTTP semantic convention stability migration for django (#2714) 2024-07-22 12:02:35 -07:00
a322a0a26b flask: add http.target and http.route to metric attributes (#2621) 2024-07-22 09:33:40 -07:00
6594cdf053 resource/azure: make the version of opentelemetry-instrument more relaxed (#2725) 2024-07-22 09:16:46 -07:00
fa23d8a7a0 Re-add opentelemetry-instrumentation-aiohttp-server to release script (#2722)
* Update .pylintrc

* Update build.sh
2024-07-18 17:47:07 -06:00
05073008a3 Re-raise redis.WatchErrors when they occur (#2721) 2024-07-18 10:11:04 -07:00
e6c27e0800 Add support to instrument httpx when using proxy (#2664) 2024-07-17 10:46:31 -07:00
5a7935ff1f Deprecate sklearn instrumentation (#2708)
Fixes #2176
2024-07-16 14:20:02 -06:00
24bc71eb2e Remove package install from aiopg instrumentation (#2712)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-07-16 13:57:38 -06:00
f8f58ee411 Add http.target to Django duration metric attributes (#2624) 2024-07-16 11:06:59 -07:00
7e48ee7254 HTTP semantic convention stability migration for aiohttp-client (#2673) 2024-07-15 13:49:35 -07:00
7c7a2a4312 Add documentation for request/response hooks for requests instrumentor (#2704) 2024-07-15 10:24:16 -07:00
7567efa341 Handle redis.exceptions.WatchError as a non-error event in instrumentation (#2668) 2024-07-15 10:09:36 -07:00
432d6f570c instrumentation/django: bump django 4.2 to 4.2.14 (#2700) 2024-07-15 09:54:14 -07:00
6bc48be45a exporter/prometheus-remote-write: bump certifi to latest (#2701)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2024-07-12 17:34:34 -06:00
15f3b97d5a Improved Test Coverage for HTTP Utility's IP Setting Functionality (#2693) 2024-07-12 15:44:44 -07:00
6293d6a991 HTTP semantic convention stability migration for fastapi (#2682) 2024-07-12 11:48:04 -07:00
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