2045 Commits

Author SHA1 Message Date
4357c35dd2 requirements: missed pytest and idna bumps (#2592) 2024-06-10 08:59:40 -07:00
3511ed180d requirements: Bump idna to 3.7 (#2583) 2024-06-07 12:54:38 -07:00
0216a9644a CONTRIBUTING: Make it more explicit you need to sign the CLA (#2582) 2024-06-07 09:14:21 -07:00
bc4b0493b9 requirements: bump pytest to 7.4.4 (#2587) 2024-06-07 08:53:22 -07:00
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
bb9eebb73e Fix readme formatting and markdown (#2576) 2024-06-05 15:27:12 -07:00
e306aba7ec removed references to [test] extras from eachdist script (#2578) 2024-06-05 11:35:48 -07:00
95fea2bfa7 Fix running async psycopg tests (#2540) 2024-06-05 11:14:44 -07:00
c06fd1dd53 Update README.rst (#2575) 2024-06-04 09:19:48 -07:00
768694cf75 add processor directory to build.sh (#2574) 2024-06-03 14:20:09 -07:00
ed51ebb312 feat(asgi,fastapi,starlette)!: provide both send and receive hooks with scope and message (#2546) 2024-06-03 10:18:47 -07:00
73d0fa46a9 Copy change log updates from release/v1.25.x-0.46bx (#2571) 2024-05-31 10:00:14 -07:00
55c829b6c4 Update release.yml 2024-05-31 09:04:58 -07:00
0db9dbe311 Update version to 1.26.0.dev/0.47b0.dev (#2568) 2024-05-30 18:48:51 -07:00
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
728976fb10 Fix net peer attribute for unix socket connection (#2493) 2024-05-30 14:50:53 -07:00
41792e7bb3 Add confluent kafka producer poll and flush returns (#2527) 2024-05-30 14:27:35 -07:00
7bddbb5419 fix: remove dependency on sdk for system-metrics instrumentation (#2557) 2024-05-29 10:17:50 -07:00
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
25e429aaf9 instrumentation: revise BaseDistro.load_instrumentor documentation (#2530) 2024-05-28 16:18:09 -07:00
f7cef14739 distro: decouple default configuration test from environment (#2561) 2024-05-28 14:56:38 -07:00
ac97b00457 Fix typos in test names (#2558) 2024-05-28 14:31:44 -07:00
59a737c285 Add key predicate to baggage span processor (#2535)
* Add key predicate to baggage span processor

* add changelog entry

* fix linting

* more linter fixes

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-05-28 12:49:00 -06:00
88111d0a83 fix(requests): Fix wrong time unit for duration histogram (#2553) 2024-05-28 11:34:28 -07:00
eb8e45695e elasticsearch: don't produce spans if native elasticsearch support is enabled (#2524) 2024-05-24 13:13:37 -07:00
65b4f850a0 Preserve brackets around literal IPv6 hosts (#2552) 2024-05-24 12:06:53 -07:00
e6409568c1 Reenable pylint broad exception (#2536) 2024-05-24 11:12:53 -07:00
c1a51fde96 Pre Python 3.12 enablement fixes (#2529) 2024-05-24 10:57:29 -07:00
78285a5795 Pin codespell version to fix builds (#2550) 2024-05-24 10:49:18 -07:00
66a107fa49 fix(async-io): return coro when __name__ is not present (#2541) 2024-05-23 16:28:50 -07:00
da75015fad fix: Ensure compability with Psycopg3 to extract libpq build version (#2500)
* fix: Ensure compability with Psycopg3 to extract libpq build version

Struggling with getting dbapi and psycopg3 working.

Think this is the error, __libpq_version does not exist on psycopg3

https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/pq/pq_ctypes.py#L1220

* docs: Add changelog entry

* docs: Fix spelling

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-05-23 12:02:46 +03:00
c28f9b837f Update functions detector readme (#2533) 2024-05-22 10:45:10 -07:00
f4f3042f85 fix(async-io): check for __name__ atribute when tracing coroutine (#2521) 2024-05-21 21:48:54 -07:00
f8758c6902 Implement functions resource detector (#2523)
* Update .pylintrc

* fn

* Update CHANGELOG.md

* commments

* Add deployment.environment to functions detector

* Revert "Add deployment.environment to functions detector"

This reverts commit 5411759711b8bc9976705deb416d5ffd8f65590f.

* Remove deployment.environment from readme

* Release 0.1.5

---------

Co-authored-by: jeremydvoss <jerevoss@gmail.com>
2024-05-16 15:05:21 -06:00
460fc33583 Fix typo in sample code (#2494)
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-05-15 12:52:59 +03:00
d0500c2f8a Add error handling to opentelemetry-bootstrap -a (#2517)
* Revert "Refactor bootstrap generation (#2101)"

This reverts commit 1ee7261ea7117fbd22e2262e488402213a874125.

* Add error handling to opentelemetry-bootstrap -a

Fixes #2516

---------

Co-authored-by: Tammy Baylis <96076570+tammy-baylis-swi@users.noreply.github.com>
2024-05-14 15:26:31 -05:00
6a40ffd905 elasticsearch: tests against elasticsearch 8 (#2420)
* elasticsearch: bump handled version to 6.0

After 4de0e5659d451baee65af412242b95f174444d87

* elasticsearch: tests against elasticsearch 8
2024-05-14 14:59:41 -05:00
9b7197d3b9 docs: fix name of response hook signature in botocore instrumentation (#2512) 2024-05-13 10:24:24 -07:00
46d2ce6ace Reinstate tox -e lint (#2482) 2024-05-10 09:51:32 -07:00
eabceff062 Bump jinja2 from 3.1.3 to 3.1.4 (#2503)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-05-09 13:53:12 -05:00
935f51eb8e upgrade pymongo to avoid CWE-125 vulnerability issue (#2497)
Signed-off-by: Yang, Robin <Robin.Yang@fmr.com>
2024-05-09 10:14:08 -05:00
bc804a3b07 Bugfix/check future cancelled (#2461)
* Calling the exception() method when future is in the cancelled state is causing a CancelledError

Calling the exception() method when future is in the cancelled state is causing a CancelledError. we should check the cancelled state first and call f.exception() only if it's not cancelled.

* modify lint

* modify lint

* Update CHANGELOG.md

* remove init()

* add future cancelled test code

* add future cancelled test code

* add future cancelled test code

* add future cancelled test code

* add future cancelled test code

* add future cancelled test code

* lint

* lint

* remove if condition

* modify test code

* lint

* lint

* remove pytest

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-05-07 18:40:21 -05:00
0a231e57f9 Update README.rst (#2499)
* Update README.rst

Fix README hyperlink syntax.

* updated README
2024-05-06 11:51:39 -05:00
1d3dea0475 Remove SDK dependency from opentelemetry-instrumentation-grpc (#2474)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-05-04 15:47:19 -05:00
1ee7261ea7 Refactor bootstrap generation (#2101)
* Refactor bootstrap generation

This makes the bootstrap script get the package version directly from
pypi instead of from our lists of packages. This makes sure that the
packages are actually available for the end user to install.

Fixes #2053

* Fix lint

* Fix lint

* Remove aiohttp

* Add missing dependency for aiohttp-client

* Use hatch version
2024-05-02 18:05:49 -05:00
2a174b2543 CONTRIBUTING: introduce pre-commit (#2479) 2024-05-02 10:11:02 -07:00
5116305f77 Separate lint into several jobs (#2467)
* Separate lint for flask

* Seaparate lint for resource-detector-container

* Add linting workflow

* Update contributing documentation

* Fix lint workflow

* Add fix for resource-detector-container

* Separate lint for sdk-extension-aws

* Separate lint for distro

* Separate lint for opentelemetry-instrumentation

* Separate lint for aiohttp-client

* Separate lint for aiohttp-server

* Separate lint for aiopg

* Separate lint for aws-lambda

* Separate lint for botocore

* Separate lint for boto3sqs

* Separate lint for django

* Separate lint for dbapi

* Separate lint for boto

* Separate lint for elasticsearch

* Separate lint for falcon

* Separate lint for fastapi

* Separate lint for urllib

* Separate lint for urllib3

* Separate lint for requests

* Separate lint for starlette

* Separate lint for jinja2

* Seaparate lint for logging and richconsole

* Separate lint for prometheus-remote-write

* Separate lint for mysql

* Separate lint for mysqlclient

* Separate lint for psycopg2

* Separate lint for psycopg

* Separate lint for pymemcache

* Separate lint for pymongo

* Separate lint for pymysql

* Separate lint for pyramid

* Separate lint for asgi

* Separate lint for asyncpg

* Separate lint for sqlite3

* Separate lint for wsgi

* Separate lint for grpc

* Separate lint for sqlalchemy

* Separate lint for redis

* Separate lint for remoulade

* Separate lint for celery and sklearn

* Separate lint for system-metrics

* Separate lint for threading

* Separate lint for tornado

* Separate lint for tortoiseorm

* Separate lint for httpx

* Separate lint for propagator-aws-xray

* Remove lint

* Separate lint for propagator-ot-trace

* Separate lint for sio-pika

* Separate lint for aio-pika

* Fix aio and sio pika

* Separate lint for kafka-python

* Separate lint for confluent-kafka

* Separate lint for asyncio

* Separate lint for cassandra

* Separate lint for processor-baggage

* Remove lint test environment

* Rename lint workflow file

* Fix sio-pika lint testing package path

* More fixes

* Fix linting for opentelemetry-instrumentation

* Add section for linting with 3.8

* Add missing lint install command for elasticsearch

* Sorted packages
2024-04-30 09:05:49 -05:00
de7ce0fb22 Use local imports when importing from tests (#2464) 2024-04-29 11:49:08 -07:00
2493258af1 Ignore vm detector if already in other rps for azure resource detector (#2456) 2024-04-29 10:53:01 -07:00
58f3d87b78 gen-requirements: Bump jinja to latest one (#2463) 2024-04-29 10:35:04 -07:00