Seeking Solutions for an Intermittent Telemetry Logging Issue in .NET 6 with OpenTelemetry: Can We Unearth Stable Alternatives? #4935
Closed
SSPAGNAMN76
started this conversation in
General
Replies: 1 comment
-
Open a bug for developers. Thanks to all for the attention. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue description
In the context of deploying our .NET 6 projects with OpenTelemetry for telemetry logging, we’re encountering an intermittent issue: telemetry logging functions only for a limited span post-deployment before ceasing without error warnings. A memory dump reveals the vanishing of OpenTelemetry instances until a connection pool refresh is initiated. The expectation is to achieve continuous, uninterrupted telemetry logging without the need for pool refreshes.
A key observation is that within our suite, only applications hosted on IIS are affected by this issue. A possible culprit has been identified in the Garbage Collector, which may prematurely deallocate the MeterProvider instance, interrupting logging. Furthermore, potential network-related issues have been highlighted in the logs, yet, given that metrics producer and collector co-exist on the same machine, this is less likely the core of the problem.
Given this scenario:
Environment:
Attempted Resolutions:
Code Configurations:
Below is the configuration class code that serves as our starting point for telemetry logging setup in our applications:
Log Results:
Error: [...] Exception: {1}{http://localhost:5110/}{Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Error starting gRPC call. HttpRequestException: An error occurred while sending the request. IOException: The request was aborted. IOException: The response ended prematurely while waiting for the next frame from the server." [...]
Deep Dive Into IIS Context Issue:
A specific correlation with IIS context has been identified. The issue is reproduced only when the application is executed within IIS and not as a standalone .NET 6 console application.
Final Query
Considering the outlined scenario, attempted resolutions, and the provided code configurations:
We are navigating through a critical path and are eager to resolve this at the earliest. Any insights, recommendations, or similar experiences shared would be highly valuable in crafting a swift, effective resolution. Your expertise and timely response will be immensely appreciated. Thank you for engaging and looking forward to a collaborative discussion.
Beta Was this translation helpful? Give feedback.
All reactions