-
Notifications
You must be signed in to change notification settings - Fork 728
Provide advisory histogram boundaries when creating OpenAI metrics #3225
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
Conversation
LGTM |
instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/main.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I guess this also applies to the auto-instrumentation, but also might water down how it looks, as we'd need to add code to the zero code ;)
thanks for linking to the issue
instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/main.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you so much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/test_chat_metrics.py
Outdated
Show resolved
Hide resolved
…tests/test_chat_metrics.py
instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/test_chat_metrics.py
Outdated
Show resolved
Hide resolved
…tests/test_chat_metrics.py
Fixes #3235
Update:
I overhauled this PR and it now leverages advisory boundaries - no need for users to configure anything and most users should have good experience with default boundaries. So no OpenAI-specific example is necessary.