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

Add metrics to the Python OpenAI instrumentation #3177

Open
drewby opened this issue Jan 9, 2025 · 0 comments · May be fixed by #3180
Open

Add metrics to the Python OpenAI instrumentation #3177

drewby opened this issue Jan 9, 2025 · 0 comments · May be fixed by #3180

Comments

@drewby
Copy link
Member

drewby commented Jan 9, 2025

What problem do you want to solve?

Implement the GenAI semantic conventions for the two client metrics so they are collected along with spans when instrumenting a Python application.

https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation-genai/opentelemetry-instrumentation-openai-v2

Describe the solution you'd like

Basic implementation of two client metrics defined in the GenAI semantic conventions:

gen_ai.client.token.usage - Documentation
gen_ai.client.operation.duration - Documentation

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

Yes

@drewby drewby converted this from a draft issue Jan 9, 2025
@drewby drewby linked a pull request Jan 10, 2025 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant