Commit Graph

101 Commits

Author SHA1 Message Date
Teja
3cd9a74f6d Anthrophic instrumentation boilerplate (#3978)
* wip: initial boilerplate for anthrophic sdk instrumentation.

* polish: adding the correct pull request number.

* polish: fixing linting errors and refining the tests.

* polish: removing the oldest ubuntu github actions test as jiter is not available.

* Update instrumentation-genai/opentelemetry-instrumentation-anthropic/src/opentelemetry/instrumentation/anthropic/version.py

Co-authored-by: Liudmila Molkova <neskazu@gmail.com>

* wip: pr amends.

* Remove anthropic from independent_packages and regenerate bootstrap

---------

Co-authored-by: Liudmila Molkova <neskazu@gmail.com>
2025-12-09 12:05:50 -05:00
Nagkumar Arkalgud
5fdc5d5100 Rename package (#3838) 2025-10-13 11:33:23 -08:00
Nagkumar Arkalgud
e3cb05396b Barebones openai agents tracer (#3805) 2025-10-07 10:39:31 -08:00
Riccardo Magliocchetti
2d46564015 Exclude opentelemetry-util-genai from release upload (#3747)
Because it should be released on its own.
While at it fix its README.rst formatting.
2025-09-11 13:35:07 +02:00
Keith Decker
74536f1a92 Add Weaviate Instrumentation Structure (#3646)
* Initial structure

* Update scripts/generate_instrumentation_bootstrap.py

Co-authored-by: Pablo Collins <pablo.collins@gmail.com>

* missing generated library

* Version update to offset traceloop implementation

* uv sync after rebase

* Missing release entries

---------

Co-authored-by: Pablo Collins <pablo.collins@gmail.com>
2025-08-04 12:36:10 -04:00
wrisa
80d5ba1f40 Start supporting langchain instrumentation (#3600)
* Added base files for the project

* Added fix for generate and pre-commit

* Added package.py

* tox generate changes to auto-generated files

* tox ruff reformatted file

* removed python 3.8 from classifiers

* addressed comments

* addressed aabmass's comments
2025-07-25 14:41:27 -04:00
Jeremy Voss
77f3171bd4 Add "instruments-any" feature: unblock multi-target instrumentations while fixing dependency conflict breakage. (#3610) 2025-07-21 08:24:50 -08:00
Emídio Neto
4a21b3974b resource-dector-container: package rename to opentelemetry-resource-detector-containerid (#3536)
* resource-dector-container: package rename

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* fix ruff

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* change entrypoint

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* fix

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* fix test

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* fix for entrypoint name

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* add changelog

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

---------

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
2025-06-04 10:41:38 +02:00
Riccardo Magliocchetti
ff18e7c18b Build instrumentation-genai/README.md (#3400)
* scripts: build a README also for instrumentation-genai

* opentelemetry-instrumentation-openai-v2: add supports_metrics to package

* opentelemetry-instrumentation-google-genai: add missing package.py

* Build instrumentation-genai/README.md
2025-04-02 09:45:56 +00:00
Riccardo Magliocchetti
2d5a21a3da instrumentation: rename experimental semconv status to development in README (#3333)
* instrumentation: rename experimental to development in README

To match the current semantic conventions naming.

* Update generate_instrumentation_readme.py

* Update README.md

* Run generate

* Update the README too
2025-03-06 13:30:28 +00:00
Aaron Abbott
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
Michael Safyan
c09a299010 Initial version of instrumentation for the Google GenAI SDK (github.com/googleapis/python-genai) (#3256)
* Begin instrumentation of GenAI SDK.

* Snapshot current state.

* Created minimal tests and got first test to pass.

* Added test for span attributes.

* Ensure that token counts work.

* Add more tests.

* Make it easy to turn off instrumentation for streaming and async to allow for rapid iteration.

* Add licenses and fill out main README.rst.

* Add a changelog file.

* Fill out 'requirements.txt' and 'README.rst' for the manual instrumentation example.

* Add missing exporter dependency for the manual instrumentation example.

* Fill out rest of the zero-code example.

* Add minimal tests for async, streaming cases.

* Update sync test to use indirection on top of 'client.models.generate_content' to simplify test reuse.

* Fix ruff check issues.

* Add subproject to top-level project build mechanism.

* Simplify invocation of pylint.

* Fix 'make test' command and lint issues.

* Add '.dev' suffix to version per feedback on pull request #3256

* Fix README.rst files for the examples.

* Add specific versions for the examples.

* Revamp 'make test' to not require local 'tox.ini' configuration.

* Extend separators per review comment.

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

* Fix version conflict caused by non-hermetic requirements.

* Fix typo on the comment line.

* Add test for the use of the 'vertex_ai' system, and improve how this system is determined.

* Factor out testing logic to enable sharing with the async code.

* Addressed minor lint issues.

* Make it clearer that nonstreaming_base is a helper module that is not invoked directly.

* Integrate feedback from related pull request #3268.

* Update workflows with 'tox -e generate-workflows'.

* Improve data model and add some rudimentary type checking.

* Accept only 'true' for a true value to align with other code.

* Update the scope name used.

* Add **kwargs to patched methods to prevent future breakage due to the addition of future keyword arguments.

* Remove redundant list conversion in call to "sorted".

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Reformat with 'tox -e ruff'.

* Fix failing lint workflow.

* Fix failing lint workflow.

* Exclude Google GenAI instrumentation from the bootstrap code for now.

* Minor improvements to the tooling shell files.

* Fix typo flagged by codespell spellchecker.

* Increase alignment with broader repo practices.

* Add more TODOs and documentation to clarify the intended work scope.

* Remove unneeded accessor from OTelWrapper.

* Add more comments to the tests.

* Reformat with ruff.

* Change 'desireable' to 'desirable' per codespell spellchecker.

* Make tests pass without pythonpath

* Fix new lint errors showing up after change

* Revert "Fix new lint errors showing up after change"

This reverts commit 567adc62a7.

pylint ignore instead

* Add TODO item required/requested from code review.

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Simplify changelog per PR feedback.

* Remove square brackets from model name in span name per PR feedback.

* Misc test cleanup. Now that scripts are invoked solely through pytest via tox, remove main functions and hash bang lines.

* Improve quality of event logging.

* Update operation name to use a constant for consistency.

* Reformat with ruff.

* Exclude opentelemetry-instrumentation-google-genai from root uv workspace

Until https://github.com/open-telemetry/opentelemetry-python-contrib/issues/3300 is fixed.

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
2025-02-27 11:37:40 -05:00
Riccardo Magliocchetti
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
Aaron Abbott
23f67eb77b Cherry pick eachdist.py changes to main from release/v1.28.x-0.49bx branch (#3018)
* Fix prepare patch release workflow (#3013)

* Fix eachdist.py patch release to respect "all" and "excluded" (#3016)
2024-11-18 12:29:35 -05:00
Leighton Chen
e3ba54b95c Add openai instrumentation to opentelemetry-bootstrap (#2996) 2024-11-12 15:13:42 -08:00
Emídio Neto
ca4d5170d0 fix: remove opentelemetry-instrumentation-test package from bootstrap_gen (#2969) 2024-11-07 11:18:51 -08:00
Emídio Neto
0adc58b4bf Introducing ruff as linter and formatter (basic setup) (#2921) 2024-10-23 10:54:14 -07:00
Liudmila Molkova
6a54106f5b Automate per-package release for specific components (#2875) 2024-10-09 09:20:02 -07:00
Diego Hurtado
5a0540ba8b Remove references to test.yml (#2830)
* Remove references to test.yml

Fixes #2829

* Update scripts/update_sha.py

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-08-27 18:08:00 +00:00
Emídio Neto
f1f017fd15 opentelemetry-bootstrap: remove aws-lambda from default instrumentations (#2786) 2024-08-12 12:51:34 -07:00
Leighton Chen
fa23d8a7a0 Re-add opentelemetry-instrumentation-aiohttp-server to release script (#2722)
* Update .pylintrc

* Update build.sh
2024-07-18 17:47:07 -06:00
soumyadeepm04
e306aba7ec removed references to [test] extras from eachdist script (#2578) 2024-06-05 11:35:48 -07:00
Alex Boten
768694cf75 add processor directory to build.sh (#2574) 2024-06-03 14:20:09 -07: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
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
a0c3211c4f Bump black to 24.3.0 (#2452) 2024-04-23 08:45:48 -07:00
Leighton Chen
99678ccd3a Add section for semantic convention status for instrumentations (#2433) 2024-04-16 14:04:17 -07:00
John Bley
8322ee790e Fix all issues from shellcheck --severity=warning (#2354) 2024-04-16 09:36:37 -07:00
John Bley
9b3d0b485e Use set -e to catch errors in all scripts (#2347) 2024-03-14 17:29:38 +00:00
Leighton Chen
1c2171528e Fix various release scripts aspects (#2267) 2024-02-23 10:50:39 -08:00
Leighton Chen
343d137f95 Skipping certain folders in release script (#2258) 2024-02-22 16:12:38 -08:00
Srikanth Chekuri
5888d4ef95 Enable lint on CI and update deps (#2067)
* Fix black an isort

* change bootstrap_gen to use a list instead of dict

* Bunch of updates

* Fix build

* fix lint

* Fix docs

* Fix lint

* More fixes

* Fix lint

* fix stupid mistake

---------

Co-authored-by: Christian Hartung <christian.hartung@olist.com>
2023-11-21 10:25:11 +02:00
Leighton Chen
4abb0e3216 Modify eachdist and build script for container packages (#1949) 2023-09-12 13:33:39 -07:00
Phillip Verheyden
ffbbb4d8e3 Add better debugging if hatch subprocess fails (#1672) 2023-02-15 21:46:56 +05:30
Srikanth Chekuri
dd7afe0cc6 Automated release workflow (#1580) 2023-01-19 01:47:34 +05:30
Vasi Vasireddy
f38eeb73df Update the usage of set-output command in GH actions (#1464) 2022-12-29 17:48:45 +00:00
Srikanth Chekuri
0adb306a8e Remove DataDog exporter from main (#1366) 2022-10-06 10:46:31 +00:00
Srikanth Chekuri
65329a89b0 Temporary fix for dd exporter publish 400 issue (#1357) 2022-09-27 14:08:23 +00:00
Srikanth Chekuri
44da384853 Minor updates to scripts (#1351) 2022-09-23 12:48:37 +05:30
Srikanth Chekuri
6753c872d2 Update tooling (#1330) 2022-09-15 23:42:49 +05:30
Ofek Lev
f6c24698b6 Fix tooling (#1322)
* Update scripts/eachdist.py

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-09-10 14:06:42 +05:30
Gal Bashan
18e056b85a Codespell ci (#1237) 2022-08-29 15:08:25 +05:30
Srikanth Chekuri
0007c9046c Add metric instrumentation for WSGI (#1128) 2022-06-22 03:54:05 +05:30
Leighton Chen
9ad41552b1 script (#1059) 2022-04-19 13:28:30 -06:00
rahulgupta92
8727bc3374 Correct minor typos in the codebase (#1019)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-03-22 23:20:48 -06:00
Owais Lone
2f74c9021c Add opentelemetry-contrib-instrumentations meta package (#681) 2022-03-16 18:02:44 -06:00
Owais Lone
3ceab3b510 prepare_release script to ignore some packages/files (#885) 2022-01-28 11:24:11 -08:00
Owais Lone
3137c1fa41 Upgrade black (#802) 2021-11-10 20:57:01 +00:00
Michael Manganiello
07c52aad38 Refactor code using pyupgrade for Python 3.6 (#770)
* Refactor code using pyupgrade for Python 3.6

This diff is the result of applying the following command to the
project:

```shell
find . -type f -name "*.py" -exec pyupgrade --py36-plus '{}' +
```

* Simplify yield from
2021-10-24 07:04:06 +05:30
(Eliseo) Nathaniel Ruiz Nowell
f7256f5236 Fix build script to not release stable pkgs (#743) 2021-10-15 13:54:56 +02:00