Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAICompletionInstrumentor Error from this Framework #1

Open
isheriff123 opened this issue Feb 15, 2024 · 0 comments
Open

OpenAICompletionInstrumentor Error from this Framework #1

isheriff123 opened this issue Feb 15, 2024 · 0 comments

Comments

@isheriff123
Copy link

(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % pip list | grep llamatry
llamatry 0.1.9
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep %
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % opentelemetry-instrument python server.py
ERROR:opentelemetry.launcher.configuration:Invalid configuration: service name missing. Set environment variable OTEL_SERVICE_NAME
ERROR:opentelemetry.launcher.configuration:application instrumented via opentelemetry-instrument. all required configuration must be set via environment variables
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/opentelemetry/launcher/configuration.py", line 515, in _configure
configure_opentelemetry(_auto_instrumented=True)
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/opentelemetry/launcher/configuration.py", line 289, in configure_opentelemetry
raise InvalidConfigurationError(message)
opentelemetry.launcher.configuration.InvalidConfigurationError: Invalid configuration: service name missing. Set environment variable OTEL_SERVICE_NAME
Traceback (most recent call last):
File "/Users/akram/AKRAM_CODE_FOLDER/LLAMA_LLM_CPP/LLMetry_LLMOPS/llamatry/examples/lightstep/server.py", line 8, in
from llamatry import OpenAICompletionInstrumentor
ImportError: cannot import name 'OpenAICompletionInstrumentor' from 'llamatry' (/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/llamatry/init.py)
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep %
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % python -V
Python 3.11.2
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep %
kram@ISHERIFF-M-RBNA lightstep %
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep %
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % ls -lh
total 24
-rw-r--r--@ 1 akram staff 745B Feb 14 16:32 README.md
-rw-r--r--@ 1 akram staff 112B Feb 14 16:32 requirements.txt
-rw-r--r--@ 1 akram staff 1.3K Feb 14 16:59 server.py
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep %
(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant