-
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
adding inference trace injection #36890
base: main
Are you sure you want to change the base?
Conversation
sdk/core/azure-core/azure/core/tracing/_generative_ai_trace_injectors.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_injector.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_injector.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_injector.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_injector.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_injector.py
Outdated
Show resolved
Hide resolved
Is there a need to log some HTTP request and response headers? I see you only log request and response body. Also, do we log full connection url? |
These are not logged as part of the GenAI semantic conventions that are added as part of this change. Connection URI and other information that looks to be http header related seem to get traced from elsewhere. |
API change check API changes are not detected in this pull request. |
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!!
Would it be possible to try it out and attach some screenshots?
[update] nevermind, found your PR here https://github.com/Azure/azureml_run_specification/pull/1182
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_ai_inference_api_instrumentor.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
would it be possible to add some tests (at least happy cases for chat with and without streaming, 1-2 failure cases)? They should probably live in the Azure AI inference itself |
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.
[deleted]
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/azure/core/tracing/_inference_api_instrumentor_impl.py
Outdated
Show resolved
Hide resolved
…/M-Hietala/azure-sdk-for-python into mhietala/inference_genai_tracing
…/M-Hietala/azure-sdk-for-python into mhietala/inference_genai_tracing commits were rejected
…/M-Hietala/azure-sdk-for-python into mhietala/inference_genai_tracing push rejected
/check-enforcer override |
Description
Adding a library that injects traces to azure-ai-inferencing.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines