Skip to content

Commit 578653d

Browse files
committed
change folder name to v2
1 parent 8813754 commit 578653d

File tree

14 files changed

+4
-3
lines changed

14 files changed

+4
-3
lines changed

instrumentation/opentelemetry-instrumentation-openai/LICENSE renamed to instrumentation/opentelemetry-instrumentation-openai-v2/LICENSE

File renamed without changes.

instrumentation/opentelemetry-instrumentation-openai/README.rst renamed to instrumentation/opentelemetry-instrumentation-openai-v2/README.rst

File renamed without changes.

instrumentation/opentelemetry-instrumentation-openai/pyproject.toml renamed to instrumentation/opentelemetry-instrumentation-openai-v2/pyproject.toml

File renamed without changes.

instrumentation/opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai_v2/__init__.py renamed to instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
4949
from opentelemetry.instrumentation.openai_v2.package import _instruments
50+
from opentelemetry.instrumentation.utils import unwrap
5051
from opentelemetry.semconv.schemas import Schemas
5152
from opentelemetry.trace import get_tracer
5253

@@ -74,4 +75,4 @@ def _instrument(self, **kwargs):
7475
)
7576

7677
def _uninstrument(self, **kwargs):
77-
unwrap(openai.resources.chat.completions.Completions, "create")
78+
unwrap("openai.resources.chat.completions.Completions", "create")

instrumentation/opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai_v2/package.py renamed to instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515

16-
_instruments = ("openai >= 0.27.0",)
16+
_instruments = ("openai >= 1.0.0",)

instrumentation/opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai_v2/patch.py renamed to instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/patch.py

File renamed without changes.

instrumentation/opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai_v2/utils.py renamed to instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/utils.py

File renamed without changes.

instrumentation/opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai_v2/version.py renamed to instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/version.py

File renamed without changes.

instrumentation/opentelemetry-instrumentation-openai/test-requirements.txt renamed to instrumentation/opentelemetry-instrumentation-openai-v2/test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openai==1.37.1
1+
openai==1.0.0
22
Deprecated==1.2.14
33
importlib-metadata==6.11.0
44
packaging==24.0

instrumentation/opentelemetry-instrumentation-openai/tests/__init__.py renamed to instrumentation/opentelemetry-instrumentation-openai-v2/tests/__init__.py

File renamed without changes.

0 commit comments

Comments
 (0)