Commit b8ca943
GenAI Utils | Adding Embedding metrics (#4377)
* linting fix
* Updating changelog
* Updating changelog PR number
* Removing embedding events emission
* Refatoring and adding input token metric for Embedding invocation
* Merging and removing unused import
* build(deps): bump aiohttp from 3.13.3 to 3.13.4 (#4386)
---
updated-dependencies:
- dependency-name: aiohttp
dependency-version: 3.13.4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Revert "Build list of required jobs in generate-workflow (#4326)" (#4413)
This reverts commit 22879d6.
Now that we have just one job to check we don't need to build the list anymore.
* Drop Python 3.9 support (#4412)
* Drop Python 3.9 support
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* generate-workflows
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fixes
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* remove extra reference to pypy310
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* changelog
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix flask tests
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix google-genai tests
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix google-genai tests
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* remove unused _ensure_gzip_single_response
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
* Add AGENTS.md with project structure and commands (#4233)
* Add CLAUDE.md with project structure and commands
* Add AGENTS.md symlink to CLAUDE.md
* Move guidance to AGENTS.md and address review feedback
- Move main content from CLAUDE.md to AGENTS.md so all AI agents
(not only Claude) pick up the guidance; CLAUDE.md now just references
it via `@AGENTS.md`.
- Add general rules, PR scoping, and `Assisted-by:` commit trailer
guidance (inspired by the Collector's AGENTS.md).
- Clarify that only instrumentation packages live under
`src/opentelemetry/instrumentation/{name}/`; other package types use
their own namespace.
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
* scripts: drop update_sha (#4430)
It's buggy and unused.
* Fix pylint false positives for ThreadPoolExecutor (#4244)
* Bump pylint to 4.0.5 to fix Python 3.14 concurrent.futures false positives
* Fix too-many-positional-arguments pylint failures - Add max-positional-arguments=10, Add pylint: disable=too-many-positional-arguments to functions that legitimately exceed the limit
* Bump max-positional-arguments to 12 and remove unnecessary disable comments
* Address review comments: fix CHANGELOG, remove stale pylintrc comment, add openai-agents disable
* Fix formatting: restore blank line in CHANGELOG and remove extra blank line in .pylintrc
* Update processor.py
* Update test_botocore_bedrock.py
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
* feat(util-genai): refactor and make API smaller and more user-friendly (#4391)
* Refactor public API on GenAI utils
* more lint
* review feedback
* update tests to use named params
* address some of the comments
* up
* fix failing checks and clean up imports
* lint
* lint
* fix lint
* replace @deprecated with docstring info to avoid warnings for users
* up
* common code for context manager
* Adding metrics call for Embedding type after refactoring
* Updating metrics tests with embedding
* Adding fix for markdown-link-check
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Sri Kaaviya <107148069+srikaaviya@users.noreply.github.com>
Co-authored-by: Liudmila Molkova <neskazu@gmail.com>1 parent 498b928 commit b8ca943
File tree
3 files changed
+159
-16
lines changed- util/opentelemetry-util-genai
- src/opentelemetry/util/genai
- tests
3 files changed
+159
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | | - | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
Lines changed: 142 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
0 commit comments