-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ai client support for tracing operations, inference instrumentation as… #37820
base: dargilco/azure-ai-client
Are you sure you want to change the base?
ai client support for tracing operations, inference instrumentation as… #37820
Conversation
… part of inference library
# ) | ||
|
||
# Get an authenticated OpenAI client for your default Azure OpenAI connection: | ||
client = ai_client.inference.get_azure_openai_client() |
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.
This should be .get_chat_completions_client(), since it looks like you are expecting azure.ai.infernce ChatCompletionsClient to be returned, not AzureOpenAI client from openai package.
|
||
# If you do not specify semantic conventions version, then the default version supported by the current | ||
# Inference SDK will be returned. | ||
instrumentor = ai_client.tracing.create_inference_instrumentor() |
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.
I wonder if this is anti-pattern on OTEL instrumentation? @lmolkova
ai_client.tracing.instrument_inference()
do something
ai_client.tracing.uninstrument_inference()
… part of inference library
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines