Marcelo Trylesinski
63e43d5222
[threading] Remove ellipsis from type hints ( #3245 )
...
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-02-13 09:38:12 +00:00
Riccardo Magliocchetti
95873604ab
botocore: add bedrock genai user events and lazy initialize tracers and event loggers ( #3258 )
...
* Create per-extension tracers if there's an extension available
* botocore: add user events for bedrock
* Remove pass of AWS env vars from tox.ini
* Remove handling for other types of messages
* Please pylint
* Add changelog
* Update CHANGELOG.md
Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
---------
Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
2025-02-13 10:08:24 +01:00
Emídio Neto
34368612f4
Update .readthedocs.yml ( #3264 )
2025-02-12 14:54:01 +01:00
dependabot[bot]
bf3c0be507
build(deps): bump cryptography ( #3259 )
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 42.0.5 to 44.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/42.0.5...44.0.1 )
---
updated-dependencies:
- dependency-name: cryptography
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: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-02-12 12:28:50 +01:00
Michael Schuett
42e8b0a451
upgrade opentelemetry-exporter-prometheus-remote-write to use protobuf 5.26 ( #3219 )
...
* Allow protobuf version above 4 and under 6 for opentelemetry_exporter_prometheus_remote_write
* update version
* fix tests
* regenerate protobufs
* with newer protoc
* format
* actually support 5.26 protobuf
* changelog
* Update CHANGELOG.md
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
2025-02-11 21:32:27 +00:00
Aaron Abbott
6e61ff0c32
VertexAI stop serializing unset fields into event ( #3236 )
2025-02-10 15:36:23 -05:00
Liudmila Molkova
231d26c4be
Provide advisory histogram boundaries when creating OpenAI metrics ( #3225 )
...
* small fixes in OpenAI examples
* up
* add comment
* leverage histogram bucket advice in 1.30
* Update instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/test_chat_metrics.py
* Update instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/test_chat_metrics.py
* up
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-02-10 09:09:52 -08:00
Aaron Abbott
c0bc2c9797
Add Vertex gen AI response attributes and `gen_ai.choice` events ( #3227 )
...
* Add Vertex gen AI response span attributes
* Vertex response gen_ai.choice events
* Add todo comment
* Update _map_finish_reason() and use it in span attribute as well
* ruff
2025-02-07 23:05:07 +00:00
Maciej Nachtygal
64f28ca279
docs: add request_hook parameter description to RedisInstrumentor ( #3247 )
...
* docs: add request_hook parameter description to RedisInstrumentor
* changelog: add missing entry in doc string for _instrument in opentelemetry-instrumentation-redis
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-02-07 11:29:28 -05:00
XlKsyt
d7bc137c60
openai: fix broken link ( #3248 )
2025-02-07 11:10:00 +00:00
Liudmila Molkova
cca571ab72
Record content events regardless of span sampling decision ( #3226 )
...
* Record content events regardless of span sampling decision
* changelog
* feedback
* ruff
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-02-06 13:28:02 +00:00
Anuraag (Rag) Agrawal
6b3a11beb2
Render strings in bedrock test cassettes for readability ( #3243 )
2025-02-06 10:06:05 +01:00
Emídio Neto
9d8a6c6420
infra: fix workflows ( #3240 )
2025-02-04 13:24:34 -08:00
OpenTelemetry Bot
85e21a9e22
Update version to 1.31.0.dev/0.52b0.dev ( #3233 )
2025-02-04 12:55:11 -08:00
Leighton Chen
d18c5fe19c
add vertexai to eachdist ( #3230 )
2025-02-03 13:01:37 -08:00
Tammy Baylis
65a2713d9f
Add mysql-connector instrumentor support for sqlcommenting ( #3163 )
2025-01-30 09:43:17 -08:00
Aaron Abbott
748c92592d
VertexAI emit user, system, and assistant events ( #3203 )
...
* VertexAI emit user events
* Emit system and assistant events
* Fix for python 3.8
* Record events regardless of span recording
* fix tests
* Apply suggestions from code review
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-01-29 22:24:39 +00:00
Riccardo Magliocchetti
7af1918b89
botocore: remove amazon copyright from bedrock_utils ( #3215 )
...
These code has been written from scratch
2025-01-28 20:22:56 +00:00
Riccardo Magliocchetti
44754e2a50
botocore: handle exceptions when consuming EventStream in bedrock extension ( #3211 )
2025-01-28 19:55:40 +00:00
Aaron Abbott
731054f736
Add server attributes to Vertex AI spans ( #3208 )
2025-01-28 16:46:13 +00:00
Emídio Neto
dd68241907
fix pymssql entry_point for auto-instrumentation ( #3214 )
...
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-01-28 14:05:19 +00:00
Riccardo Magliocchetti
eabab7d0ad
Fix changelog ( #3213 )
2025-01-28 14:31:11 +01:00
Riccardo Magliocchetti
93e6fcfa26
botocore: add basic tracing for Bedrock InvokeModelWithStreamResponse ( #3206 )
...
* Add basic tracing for InvokeModelWithResponseStream
* Add changelog and please pylint
2025-01-28 09:55:28 +01:00
guillaumep
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
Riccardo Magliocchetti
0bb1c42a78
botocore: add basic tracing for bedrock ConverseStream ( #3204 )
...
* Add tracing for ConverseStream
* Add converse stream example
2025-01-27 10:01:07 +01:00
Riccardo Magliocchetti
2756c1edff
botocore: add basic handling for bedrock invoke.model ( #3200 )
...
* Add basic handling for invoke.model
* Add changelog a please pylint
* Record converse cassettes against us-east-1
* Avoid double copy of streaming body
---------
Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
2025-01-23 17:14:49 +01:00
Aaron Abbott
ec3c51dcd1
Added Vertex AI spans for request parameters ( #3192 )
...
* Added Vertex AI spans for request parameters
* small fixes, get CI passing
* Use standard OTel tracing error handling
* move nested util
* Actually use GAPIC client since thats what we use under the hood
Also this is what LangChain uses
* Comment out seed for now
* Remove unnecessary dict.get() calls
* Typing improvements to check that we support both v1 and v1beta1
* Add more teest cases for error conditions and fix span name bug
* fix typing
* Add todos for error.type
2025-01-22 13:32:34 -05:00
Josh Owen
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
Riccardo Magliocchetti
37f85bf8cc
instrumentation/aws-lambda: don't print warnings outside of AWS Lambda ( #3183 )
...
If we are not running inside AWS Lambda don't print warnings on missing
OTel lambda extension layer.
The instrumentation is installed by the OTel k8s operator and so this
warning may confuse users.
2025-01-21 13:57:53 +00:00
OpenTelemetry Bot
20413ef7d7
Copy changelog updates from package-release/opentelemetry-instrumentation-openai-v2/v2.1bx ( #3197 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-01-21 09:10:48 +01:00
Riccardo Magliocchetti
9460773e5c
Basic instrumentation for Bedrock runtime Converse api ( #3161 )
...
* botocore: add extension for bedrock runtime api
* Add tests and handle only non streaming responses
* Make it explicit we are handling only the converse operation
* Simplify test since all models behaves the same
* Add test for error case and rework things a bit
* Add converse example
* Generate workflows
* Add changelog
2025-01-20 09:56:09 +01:00
OpenTelemetry Bot
86a7f6bab3
Update opentelemetry-instrumentation-openai-v2 version to v2.2b0 ( #3194 )
2025-01-17 20:12:12 -08:00
Emídio Neto
9b217bb4ff
introducing tox-uv for real ( #3185 )
...
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
2025-01-17 17:33:52 +01:00
Aaron Abbott
9d9353d4c6
Run pyright on Vertex AI instrumentation ( #3184 )
2025-01-16 14:25:35 -05:00
Drew Robbins
a716949d1c
Add metrics to the Python OpenAI instrumentation ( #3180 )
2025-01-15 14:24:35 -08:00
Marcelo Trylesinski
07c97eac38
Add type hints to `psycopg` ( #3067 )
...
* Add type hints to Psycopg
* fix tests
* fix
* Add psycopg.Connection to nitpick
* Add py.typed
* add psycopg to nitpick again
* add psycopg to nitpick again
* move py.typed to the right folder
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-01-15 16:30:01 +00:00
Marcelo Trylesinski
52871b82b6
Add type hints to HTTPX ( #3098 )
2025-01-14 09:27:35 -08:00
Marcelo Trylesinski
e54256ddb7
Support PEP 561 to `opentelemetry-instrumentation-urllib` ( #3131 )
...
* Support PEP 561 to `opentelemetry-instrumentation-urllib`
* add future
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-01-14 16:28:11 +00:00
Josh Soref
c59b514cda
Fix component owner workflow permissions ( #3165 )
2025-01-13 15:42:32 -08:00
Marcelo Trylesinski
5219242eaf
Support PEP 561 to `opentelemetry-instrumentation-wsgi` ( #3129 )
2025-01-13 13:32:16 -08:00
Filip Nikolovski
b7e7d0cbe5
Implement new HTTP semantic convention opt-in for Falcon ( #2790 )
2025-01-13 11:49:22 -08:00
Marcelo Trylesinski
406707b2bd
Add type checker ( #3116 )
2025-01-13 09:20:33 -08:00
Tammy Baylis
8406e2e789
DB drivers: db.statement inclusion of sqlcomment as opt-in ( #3121 )
...
* db-api opt-in for enable_attribute_commenter
* Refactor db-api traced_execution
* Changelog
* Update comment
* psycopg(2), mysqlclient, pymysql support enable_attribute_commenter
* Changelog
2025-01-13 10:40:43 +01:00
Marcelo Trylesinski
29ef6a9455
Add type hints to dbapi ( #3068 )
2025-01-10 10:03:09 -08:00
Marcelo Trylesinski
3ebdb6344b
Support PEP 561 to `opentelemetry-instrumentation-pymongo` ( #3136 )
2025-01-10 09:20:28 -08:00
Marcelo Trylesinski
a606fab849
Support PEP 561 to `opentelemetry-instrumentation-requests` ( #3135 )
2025-01-10 09:00:10 -08:00
Marcelo Trylesinski
0ad779a5b3
Support PEP 561 to `opentelemetry-instrumentation-jinja2` ( #3137 )
2025-01-09 17:42:12 -08:00
Will Li
962a3aecdb
fix #991 audit asyncpg instrumentation with nooptracerprovider ( #3144 )
2025-01-09 14:51:23 -08:00
Guspan Tanadi
41e670aeee
docs(README): semantic convention migration links ( #3160 )
2025-01-09 13:58:53 -08:00
Marcelo Trylesinski
9af3136e7f
Support PEP 561 to `opentelemetry-util-http` ( #3127 )
2025-01-09 13:21:19 -08:00