Commit Graph

2040 Commits

Author SHA1 Message Date
Leighton Chen bb9eebb73e
Fix readme formatting and markdown (#2576) 2024-06-05 15:27:12 -07:00
soumyadeepm04 e306aba7ec
removed references to [test] extras from eachdist script (#2578) 2024-06-05 11:35:48 -07:00
Riccardo Magliocchetti 95fea2bfa7
Fix running async psycopg tests (#2540) 2024-06-05 11:14:44 -07:00
Leighton Chen c06fd1dd53
Update README.rst (#2575) 2024-06-04 09:19:48 -07:00
Alex Boten 768694cf75
add processor directory to build.sh (#2574) 2024-06-03 14:20:09 -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 73d0fa46a9
Copy change log updates from release/v1.25.x-0.46bx (#2571) 2024-05-31 10:00:14 -07:00
Leighton Chen 55c829b6c4
Update release.yml 2024-05-31 09:04:58 -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 25e429aaf9
instrumentation: revise BaseDistro.load_instrumentor documentation (#2530) 2024-05-28 16:18:09 -07:00
Riccardo Magliocchetti f7cef14739
distro: decouple default configuration test from environment (#2561) 2024-05-28 14:56:38 -07:00
Riccardo Magliocchetti ac97b00457
Fix typos in test names (#2558) 2024-05-28 14:31:44 -07:00
Mike Goldsmith 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
Martin Stolle 88111d0a83
fix(requests): Fix wrong time unit for duration histogram (#2553) 2024-05-28 11:34:28 -07:00
Riccardo Magliocchetti eb8e45695e
elasticsearch: don't produce spans if native elasticsearch support is enabled (#2524) 2024-05-24 13:13:37 -07:00
Tim Hutchinson 65b4f850a0
Preserve brackets around literal IPv6 hosts (#2552) 2024-05-24 12:06:53 -07:00
Riccardo Magliocchetti e6409568c1
Reenable pylint broad exception (#2536) 2024-05-24 11:12:53 -07:00
Riccardo Magliocchetti c1a51fde96
Pre Python 3.12 enablement fixes (#2529) 2024-05-24 10:57:29 -07:00
Leighton Chen 78285a5795
Pin codespell version to fix builds (#2550) 2024-05-24 10:49:18 -07:00
Povilas Versockas 66a107fa49
fix(async-io): return coro when __name__ is not present (#2541) 2024-05-23 16:28:50 -07:00
Adin Hodovic 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
Jeremy Voss c28f9b837f
Update functions detector readme (#2533) 2024-05-22 10:45:10 -07:00
Povilas Versockas f4f3042f85
fix(async-io): check for __name__ atribute when tracing coroutine (#2521) 2024-05-21 21:48:54 -07:00
Leighton Chen 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 5411759711.

* Remove deployment.environment from readme

* Release 0.1.5

---------

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

This reverts commit 1ee7261ea7.

* 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
Riccardo Magliocchetti 6a40ffd905
elasticsearch: tests against elasticsearch 8 (#2420)
* elasticsearch: bump handled version to 6.0

After 4de0e5659d

* elasticsearch: tests against elasticsearch 8
2024-05-14 14:59:41 -05:00
Federico Bond 9b7197d3b9
docs: fix name of response hook signature in botocore instrumentation (#2512) 2024-05-13 10:24:24 -07:00
Riccardo Magliocchetti 46d2ce6ace
Reinstate tox -e lint (#2482) 2024-05-10 09:51:32 -07:00
dependabot[bot] 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
hyfj44255 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
Allen Kim 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
Akshay Awate 0a231e57f9
Update README.rst (#2499)
* Update README.rst

Fix README hyperlink syntax.

* updated README
2024-05-06 11:51:39 -05:00
Aaron Abbott 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
Diego Hurtado 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
Riccardo Magliocchetti 2a174b2543
CONTRIBUTING: introduce pre-commit (#2479) 2024-05-02 10:11:02 -07:00
Diego Hurtado 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
Riccardo Magliocchetti de7ce0fb22
Use local imports when importing from tests (#2464) 2024-04-29 11:49:08 -07:00
Leighton Chen 2493258af1
Ignore vm detector if already in other rps for azure resource detector (#2456) 2024-04-29 10:53:01 -07:00
Riccardo Magliocchetti 58f3d87b78
gen-requirements: Bump jinja to latest one (#2463) 2024-04-29 10:35:04 -07:00
Riccardo Magliocchetti 3291f38e8d
elasticsearch: test against elasticsearch 7 (#2431)
* Update core repo SHA

* elasticsearch: test against elasticsearch 7

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-04-28 09:20:17 -05:00
Diego Hurtado bd4a22a0d9
Remove unnecessary package installations (#2424)
* Remove unnecessary dependency installations

Fixes #2423

* Fix tox.ini merge conflicts
2024-04-25 16:23:22 -05:00
Leighton Chen c8d5f851ed
HTTP transition for flask (#2454) 2024-04-25 10:40:03 -07:00
Alessandro Bologna d5b5925cf8
Fix exception handling for events with requestContext (#2418)
* Fix exception handling for events with requestContext

* added entry to changelog

* reformatted with black

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-04-25 10:57:39 -05:00
Alex Boten 5375acf534
new(opentelemetry-processor-baggage): add new component (#2436)
* new(opentelemetry-processor-baggage): add new component

Fixes #2428

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* add tests

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* update changelog

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* update component owners

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* lint

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* update license

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* fix lint

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* lint

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

* rename processors dir to processor

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-04-25 10:25:34 -05:00