This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.47k
stars
4.8k
forks
source link
[FEATURE REQ] Add observability options to `ClientPipelineOptions` #45267
We'll need some tracing/metrics/logging options similar to ones available in Azure.Core.
In particular:
enable/disable tracing, metrics, logs on a specific client instance.
tracing/metrics/logs can be enabled globally, but sometimes more granular control is nice to have. E.g. when specific clients/operations are very verbose.
Another approach could be to have it in the RequestOptions and be even more granular.
control redaction/sensitive data. Arguably tracing and logs have similar sensitivity settings (allowed headers and query params).
It's not blocking any immediate work wrt tracing or metric instrumentation and is purely incremental.
Library name
System.ClientModel
Please describe the feature.
Follow up on https://github.com/openai/openai-dotnet/pull/107#discussion_r1683258725
We'll need some tracing/metrics/logging options similar to ones available in Azure.Core.
In particular:
RequestOptions
and be even more granular.It's not blocking any immediate work wrt tracing or metric instrumentation and is purely incremental.