-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[BUG] Erroneous warning logs when performing CreateIfNotExistsAsync #19982
Comments
Possible fix: It should be a info log only. |
Hi @drauch. Thank you for reaching out and we regret that you're experiencing difficulties. This is a known and, unfortunately, expected behavior at present. In these cases, the behavior is due to Application Insights capturing the REST traffic and interpreting the response code as an error, though it is expected by the SDK which does not consider it a failure. Unfortunately, the service result is an implementation detail which the SDK does not control and cannot influence, but one that is leaking out for AI monitoring. We agree that it isn't our preferred experience for developers using the SDK. We're working with the Azure Monitor team to understand our options for making this better while still being compliant with the OpenTelemetry specification. @pakrym may have more insight to share. |
@jsquire Is there any way for an Azure SDK client to work around this problem? E.g., by hooking into the Application Insights pipeline somehow? Note however that we're seeing this not just in telemetry sent to Azure Application Insights, but also as a local log message (via |
I'll need to defer to @pakrym for the authoritative answer. Unfortunately, I don't know the My assumption is that the extensions hook the active ETW log sources for content. If that is the case, you could opt out of logging HTTP calls entirely: var options = new BlobClientOptions
{
Diagnostics =
{
IsLoggingEnabled = false
}
} You may (or may not) be able to configure the listener used by the logging extensions to perform manual filtering of the ETW events as they're captured, before the application logs are emitted. |
Hey @fschmied, this is a known problem that's caused by client architecture. At the point where the HTTP request is logged (or a distributed tracing span started) the pipeline doesn't know how the client would interpret it. We are looking into it long-term but. As for a workaround you can look into adding ApplicationInsights |
Thinking about it, we can do something short-term as well. #20064 and microsoft/ApplicationInsights-dotnet#2200 |
Hi @drauch. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Hi @drauch, since you haven’t asked that we “ |
Describe the bug
The following code logs a warning:
Expected behavior
No warning is logged, we're not doing anything out of the ordinary which should trigger a warning for our operators.
Actual behavior (include Exception or Stack Trace)
It logs a warning, sample:
To Reproduce
See example above.
Environment:
The text was updated successfully, but these errors were encountered: