You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to install a standalone opentelemetry-instrumentation-openai module. Followed the README file. After installing the module, It'd throw an exception
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/dnguyen/mambaforge/envs/zgap-chatbot/lib/python3.9/site-packages/opentelemetry/instrumentation/openai/__init__.py", line 3, in <module>
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
File "/Users/dnguyen/mambaforge/envs/zgap-chatbot/lib/python3.9/site-packages/opentelemetry/instrumentation/instrumentor.py", line 24, in <module>
from opentelemetry.instrumentation._semconv import (
File "/Users/dnguyen/mambaforge/envs/zgap-chatbot/lib/python3.9/site-packages/opentelemetry/instrumentation/_semconv.py", line 19, in <module>
from opentelemetry.semconv.trace import SpanAttributes
ModuleNotFoundError: No module named 'opentelemetry.semconv.trace'
Hey @datlife thanks for flagging this! Can you try to run poetry add opentelemetry-semantic-conventions and see if it resolves this? We might have some dependency missing in our pyproject.toml
Which component is this bug for?
OpenAI Instrumentation
📜 Description
I'd like to install a standalone opentelemetry-instrumentation-openai module. Followed the README file. After installing the module, It'd throw an exception
👟 Reproduction steps
Step 1: Install opentelemetry-instrumentation-openai
Step 2: Run an example code
👍 Expected behavior
No error should be reported during init step
👎 Actual Behavior with Screenshots
Exception error
🤖 Python Version
3.9.16
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: