Skip to content

Commit

Permalink
adjust all naming to -v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alizenhom committed Oct 17, 2024
1 parent 578653d commit 578a942
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `opentelemetry-instrumentation-openai` Instrumentation for OpenAI >= 0.27.0
- `opentelemetry-instrumentation-openai-v2` Instrumentation for OpenAI >= 0.27.0
([#2759](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2759))

### Added
Expand Down
2 changes: 1 addition & 1 deletion eachdist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ packages=
opentelemetry-resource-detector-azure
opentelemetry-sdk-extension-aws
opentelemetry-propagator-aws-xray
opentelemetry-instrumentation-openai
opentelemetry-instrumentation-openai-v2
opentelemetry-instrumentation-test

[lintroots]
Expand Down
2 changes: 1 addition & 1 deletion instrumentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
| [opentelemetry-instrumentation-logging](./opentelemetry-instrumentation-logging) | logging | No | experimental
| [opentelemetry-instrumentation-mysql](./opentelemetry-instrumentation-mysql) | mysql-connector-python >= 8.0, < 10.0 | No | experimental
| [opentelemetry-instrumentation-mysqlclient](./opentelemetry-instrumentation-mysqlclient) | mysqlclient < 3 | No | experimental
| [opentelemetry-instrumentation-openai](./opentelemetry-instrumentation-openai) | openai >= 0.27.0 | No | experimental
| [opentelemetry-instrumentation-openai](./opentelemetry-instrumentation-openai-v2) | openai >= 1.0.0 | No | experimental
| [opentelemetry-instrumentation-pika](./opentelemetry-instrumentation-pika) | pika >= 0.12.0 | No | experimental
| [opentelemetry-instrumentation-psycopg](./opentelemetry-instrumentation-psycopg) | psycopg >= 3.1.0 | No | experimental
| [opentelemetry-instrumentation-psycopg2](./opentelemetry-instrumentation-psycopg2) | psycopg2 >= 2.7.3.1 | No | experimental
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,18 @@ dependencies = [
"opentelemetry-api ~= 1.12",
"opentelemetry-instrumentation ~= 0.48b0",
"opentelemetry-semantic-conventions ~= 0.48b0"

]

[project.optional-dependencies]
instruments = [
"openai >= 0.27.0",
"openai >= 1.0.0",
]

[project.entry-points.opentelemetry_instrumentor]
openai = "opentelemetry.instrumentation.openai_v2:OpenAIInstrumentor"

[project.urls]
Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-openai"
Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-openai-v2"

[tool.hatch.version]
path = "src/opentelemetry/instrumentation/openai_v2/version.py"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pytest-vcr==1.0.2
wrapt==1.16.0

-e opentelemetry-instrumentation
-e instrumentation/opentelemetry-instrumentation-openai
-e instrumentation/opentelemetry-instrumentation-openai-v2
2 changes: 1 addition & 1 deletion opentelemetry-contrib-instrumentations/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies = [
"opentelemetry-instrumentation-logging==0.49b0.dev",
"opentelemetry-instrumentation-mysql==0.49b0.dev",
"opentelemetry-instrumentation-mysqlclient==0.49b0.dev",
"opentelemetry-instrumentation-openai==2.0.0.dev",
"opentelemetry-instrumentation-openai-v2==2.0.0.dev",
"opentelemetry-instrumentation-pika==0.49b0.dev",
"opentelemetry-instrumentation-psycopg==0.49b0.dev",
"opentelemetry-instrumentation-psycopg2==0.49b0.dev",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"instrumentation": "opentelemetry-instrumentation-mysqlclient==0.49b0.dev",
},
{
"library": "openai >= 0.27.0",
"library": "openai >= 1.0.0",
"instrumentation": "opentelemetry-instrumentation-openai-v2==2.0.0.dev",
},
{
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ commands_pre =
openai: pip install opentelemetry-semantic-conventions@{env:CORE_REPO}\#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions
openai: pip install opentelemetry-sdk@{env:CORE_REPO}\#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk
openai: pip install opentelemetry-test-utils@{env:CORE_REPO}\#egg=opentelemetry-test-utils&subdirectory=tests/opentelemetry-test-utils
openai: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-openai/test-requirements.txt
openai: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-openai-v2/test-requirements.txt

distro: pip install opentelemetry-api@{env:CORE_REPO}\#egg=opentelemetry-api&subdirectory=opentelemetry-api
distro: pip install opentelemetry-semantic-conventions@{env:CORE_REPO}\#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions
Expand Down Expand Up @@ -470,7 +470,7 @@ commands_pre =
openai: pip install opentelemetry-api@{env:CORE_REPO}\#egg=opentelemetry-api&subdirectory=opentelemetry-api
openai: pip install opentelemetry-sdk@{env:CORE_REPO}\#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk
openai: pip install opentelemetry-semantic-conventions@{env:CORE_REPO}\#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions
openai: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-openai/test-requirements.txt
openai: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-openai-v2/test-requirements.txt

confluent-kafka: pip install opentelemetry-api@{env:CORE_REPO}\#egg=opentelemetry-api&subdirectory=opentelemetry-api
confluent-kafka: pip install opentelemetry-semantic-conventions@{env:CORE_REPO}\#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions
Expand Down

0 comments on commit 578a942

Please sign in to comment.