d6f6c60c16
autoinstrumentation: don't print duplicated conflict log error message ( #3432 )
...
* Update instrumentor.py
* Add tests for dependency conflict logging
* Format code in test_instrument_missing_dependency
* Add comments for dependency conflict handling
2025-04-18 16:53:35 +00:00
9c969f363e
autoinstrumentation: catch ModuleNotFoundError
when the library is not installed ( #3423 )
...
* catch ModuleNotFoundError when the library is not installed and prevent exception from bubbling up
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* cleanup
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* remove dup test
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* Update CHANGELOG.md
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
2025-04-15 09:43:13 +02:00
6587485d05
Update version to 1.33.0.dev/0.54b0.dev ( #3413 )
...
* Update version to 1.33.0.dev/0.54b0.dev
* Point CORE_REPO_SHA to opentelemetrybot/update-version-to-1.33.0.dev-0.54b0.dev
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-04-10 13:53:58 +00:00
6d5a5149d0
Make auto instrumentation use the same dependency resolver as manual instrumentation does ( #3202 )
2025-04-08 15:11:09 +02:00
0ea9998c4c
Add asyncclick instrumentation ( #3319 )
...
* Add asyncclick instrumentation
* Add instrumentation for asyncclick based CLI apps
* Add tox
* Add Changelog
* Update workflows
This implementation is based on the original click instrumentation work by:
- Emídio Neto <9735060+emdneto@users.noreply.github.com>
- Anuraag (Rag) Agrawal <anuraaga@gmail.com>
- Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
* Update CHANGELOG.md
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
* Fix async refs in code-block example
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-03-28 12:20:29 +01:00
af179659a2
Fix client address is set to server address in new semconv ( #3354 )
...
* Fix client address is set to server address
* fix: asgi tests
* docs: update CHANGELOG
* docs: update CHANGELOG
* refactor: only populate server address if missing
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2025-03-24 16:15:51 +01:00
ad29af3996
opentelemetry-instrumentation: fix RST syntax of README ( #3362 )
...
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-03-13 19:34:49 +01:00
3c88163c99
Handle empty strings in sqlcommenter ( #3309 )
...
* Handle empty strings
Safer check for a trailing semicolon that could handle
empty strings as well.
* Updated CHANGELOG.md
* Test for empty SQL strings in sqlcommenter
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-03-13 11:18:35 +00:00
6189be647c
Update version to 1.32.0.dev/0.53b0.dev ( #3359 )
2025-03-12 12:07:49 -08:00
c6c0162cef
Loosen opentelemetry-instrumentation-starlette[instruments]
specifier ( #3304 )
...
* Loosen `opentelemetry-instrumentation-starlette[instruments]` specifier
* Compile locked requirements with uv
* Update comment for clarity
* Generate for python 3.8+
* Update package.py as well
* generate
* Oops, undo accidental change to starlette version
* Update uv pip compile command to remove core repo git SHAs and absolute paths
2025-03-03 20:22:57 +00:00
f17a1bd65a
Add opentelemetry-instrumentation-vertexai>=2.0b0 to opentelemetry-bootstrap ( #3307 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-02-28 14:23:38 +00:00
38006e86c4
opentelemetry-instrumentation: expose a way to init autoinstrumentation programmatically ( #3273 )
...
* opentelemetry-instrumentation: expose a way to init autoinstrumentation
* Please pylint
* Add changelog
* Fix example
* Fix whitespace in README
* Add a note aboout ordering of initialization vs imports
* Don't touch PYTHONPATH if not set
* Update opentelemetry-instrumentation/README.rst
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
* Update CHANGELOG.md
* Update opentelemetry-instrumentation/README.rst
Co-authored-by: Leighton Chen <lechen@microsoft.com>
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2025-02-24 11:15:13 +00:00
e4a5b54135
scripts/generate_instrumentation_bootstrap: don't force genai instrumentations versions ( #3278 )
...
* scripts/generate_instrumentation_bootstrap: don't force genai instrumentations versions
Since genai instrumentations are released on their own we cannot have a
fixed required version on this side.
While at it add vertexai to the list of excluded packages since:
- it has not been released yet
- the name is already claimed by openllmetry
* Regenerate bootstrap_gen
* Please spellcheck
---------
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2025-02-21 09:55:10 +00:00
85e21a9e22
Update version to 1.31.0.dev/0.52b0.dev ( #3233 )
2025-02-04 12:55:11 -08:00
5478a0b77a
Add pymssql instrumentation ( #394 )
...
* Add pymssql instrumentation
* Run tox -e generate
* tox -e generate-workflows
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-01-27 16:12:21 +01:00
3f50c08580
psycopg2-binary support ( #3186 )
...
* psycopg2-binary support
* changelog
* Update CHANGELOG.md
* Update pyproject.toml
* fix
* lint
* added test config
* Update bootstrap_gen.py
* update tox
* Update tox.ini
* regenerate workflows
* workflows
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-01-21 15:41:56 -05:00
86a7f6bab3
Update opentelemetry-instrumentation-openai-v2 version to v2.2b0 ( #3194 )
2025-01-17 20:12:12 -08:00
147e3f754e
Add check before iterating over dist.requires at load_instrumentor ( #3168 )
...
* Add check before iterate over dist.requires
* Changelog
* Add test
2025-01-08 10:02:55 +01:00
e5eb524e89
Improve type hints in opentelemetry.instrumentation.utils
( #3128 )
2025-01-02 11:44:58 -08:00
54882871b9
add official support to Python 3.13 ( #3134 )
...
* add py313 to tox
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix wrong identation troveclassifiers
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix pyramid, django
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix httpx
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix httpx, grpc and add vertex
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* generate-workflows
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix generate-workflows
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix celery and psycopg
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* add changelog
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* Update CHANGELOG.md
* Update tox.ini
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-12-31 16:08:20 +00:00
2176e3e43e
opentelemetry-instrumentation-falcon: expand supported version to v4 ( #3086 )
...
* opentelemetry-instrumentation-falcon: expand supported version to v4
Falcon v4 has a mostly identical interface to v3, and is proved to be fully compatible with `opentelemetry-instrumentation-falcon`. Loose the version check to `<5.0.0` to avoid false `DependencyConflict` alarm.
* opentelemetry-instrumentation-falcon: generate tests for v4
* opentelemetry-instrumentation-falcon: prepare tests for v4
* opentelemetry-instrumentation-falcon: add test preset for `~=3.1.2`
* docs: add changelog for Falcon v4 instrumentation
* opentelemetry-instrumentation-falcon: adjust pylint mark for v4
* _has_fixed_http_target property
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* move changelog to the correct section
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix test and bootstrap_gen
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: emdneto <9735060+emdneto@users.noreply.github.com>
2024-12-23 17:34:48 +00:00
72576f65e0
Vertex AI instrumentation boilerplate ( #3123 )
...
* Vertex AI boilerplate copied from openai-v2
* tox.ini boilerplate
* tox -e generate,generate-workflows
2024-12-21 23:45:53 +00:00
54cbf59aae
Update package metadata adding "Repository" to project urls ( #3119 )
...
Add "Repository" label to project urls pointing to the
opentelemetry-python repo root url.
Having within project urls one entry with the same value for all
packages released by the project will help tools for automatic
dependency management to suggest coherent upgrades for related packages.
2024-12-19 10:15:58 +00:00
52ff7bdd4b
feat: Update opentelemetry-instrumentation-confluent-kafka to support confluent-kafka <=2.7.0 ( #3100 )
2024-12-17 12:33:39 -08:00
cc62d1f05e
prepare semconv utilities to support database stability opt-in ( #3111 )
2024-12-17 09:58:04 -08:00
490580d6f3
Update version to 1.30.0.dev/0.51b0.dev ( #3092 )
2024-12-12 11:17:53 +00:00
7804e0a4e8
Add type hints to BaseInstrumentor ( #3084 )
2024-12-11 10:37:51 +01:00
d330ab3dd0
Add click instrumentation ( #2994 )
...
* Add instrumentation for click based CLI apps
Co-authored-by: Anuraag (Rag) Agrawal <anuraaga@gmail.com>
* Add tox
* Add Changelog
* Silence pylint
* Update tox.ini
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
* Update instrumentation/opentelemetry-instrumentation-click/pyproject.toml
* Add baseline version
* Adhere to new cli span semconv
* Update workflows
---------
Co-authored-by: Anuraag (Rag) Agrawal <anuraaga@gmail.com>
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2024-11-27 08:38:38 +00:00
e3ba54b95c
Add openai instrumentation to opentelemetry-bootstrap ( #2996 )
2024-11-12 15:13:42 -08:00
1d6968b672
fix: teach instrument version constraint for sqlalchemy ( #2971 )
2024-11-07 15:39:16 -08:00
ca4d5170d0
fix: remove opentelemetry-instrumentation-test package from bootstrap_gen ( #2969 )
2024-11-07 11:18:51 -08:00
226258e457
Update version to 1.29.0.dev/0.50b0.dev ( #2954 )
2024-11-05 14:22:03 -08:00
acffef957d
opentelemetry-instrumentation: stick to latest semantic conventions package ( #2952 )
...
To match the instrumentations.
Will hopefully fix pip not able to handle the situation:
opentelemetry-instrumentation 0.49b0 depends on opentelemetry-semantic-conventions>=0.48b0
opentelemetry-instrumentation-dbapi 0.49b0 depends on opentelemetry-semantic-conventions==0.49b0
2024-11-05 14:20:03 +01:00
3109724f48
Add genai contributing guidance ( #2944 )
2024-11-04 06:18:11 -08:00
8582da5b8d
opentelemetry-instrumentation: don't fail if an instrumentor raises ImportError ( #2923 )
2024-10-25 12:25:51 -07:00
39bd7fa79a
opentelemetry-instrumentation: add unwrapping from dotted paths strings ( #2919 )
2024-10-24 13:19:29 -07:00
5c566a0c37
opentelemetry-instrumentation: make it easier to use bootstrap with custom values ( #2918 )
2024-10-24 09:34:54 -07:00
0adc58b4bf
Introducing ruff as linter and formatter (basic setup) ( #2921 )
2024-10-23 10:54:14 -07:00
beed0aa395
Add Initial Support for Instrumenting OpenAI Python Library - Chat Completion Create ( #2759 )
2024-10-22 09:21:43 -07:00
e4ece57a81
Remove pkg resources ( #2871 )
2024-10-19 06:49:08 -07:00
6a54106f5b
Automate per-package release for specific components ( #2875 )
2024-10-09 09:20:02 -07:00
f8bb28928c
Update test requirements for work with Python 3.13 ( #2887 )
...
* Added deb to make cassandra tests work with python 3.13
* Bumped cffi to work with Python 3.13
* Fixed some test-requirements for Python 3.13
* Updated typing_extensions everywhere
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2024-09-26 08:52:02 +02:00
08def3e40a
Update pyproject.toml ( #2873 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-09-17 08:38:24 +00:00
1a39ac80f8
feat: add opentelemetry-instrumentation-aiokafka ( #2082 )
2024-09-16 12:02:39 -07:00
6f1a17d8dd
fix grpc supported version ( #2845 )
2024-09-10 08:43:44 -07:00
d6e667f3eb
Update README.rst ( #2849 )
...
The URL link is incorrect; it should be a repository in the open-telemetry account.
2024-09-04 13:55:00 +02:00
40c3363e9d
bump asgiref to 3.8.1 in test-requirements ( #2841 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-09-03 13:28:53 -06:00
ee67ea8ba5
Update version to 1.28.0.dev/0.49b0.dev ( #2828 )
...
* Update version to 1.28.0.dev/0.49b0.dev
* Update core SHA
---------
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-08-28 15:20:37 -06:00
476f6e245a
bootstrap: don't strip \n for last item on listing ( #2820 )
2024-08-26 12:46:08 -07:00
bc4d2c5b75
Fix http.host
and net.peer.ip
new http semconv mapping ( #2814 )
2024-08-23 16:56:36 -07:00