-
Notifications
You must be signed in to change notification settings - Fork 181
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
Duplicate Logs in Application Insights #2634
Comments
I have same issue.
"logging": {
"logLevel": {
"default": "Warning",
"Function": "Warning",
"Host.Aggregator": "Information",
"Host.Results": "Information",
"Function.HealthCheck": "Error",
"Function.Hoge": "Information",
"Function.Hoge.User": "Information"
},
"console": {
"isEnabled": false,
"DisableColors": true
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"maxTelemetryItemsPerSecond": 1,
"excludedTypes": "Exception"
},
"enableLiveMetricsFilters": true
}
} |
The stream log of application insights log at the function of azure portal is ok. I have another function which runs on python and it has same situation. |
I am also in the same boat as @s-nakagaki my dotnet isolated function app faces this issue with open telemetry distro. I have already opened prior issue in azure dotnet linking it here as well Azure/azure-sdk-for-net#45320 |
I can ack on @Barsonax seeing duplicate logs from two different sdks as they mentioned. |
What version of .NET does your existing project use?
.NET 8
What version of .NET are you attempting to target?
.NET 8
Description
I am experiencing an issue where my logs are getting printed twice on Application Insights. Below are the details of my setup and configuration:
Logging Setup in Startup :
Application Insights Configuration
By default, Application Insights is set to log warnings, so I reset the rules at bootup:
Application Insights Service Options
var aiServiceOptions = new ApplicationInsightsServiceOptions { EnableAdaptiveSampling = false, EnableDebugLogger = false, };
Issue
Despite the above configuration, I observe that some logs are being duplicated in the trace logs. I suspect there might be an issue with my logging setup or configuration.
Request
Could someone please help identify if there is something wrong with my configuration or suggest a solution to prevent duplicate logs?
Project configuration and dependencies
I have upgraded my inprocess model to worker model dot net isolated ie dot net 8
Link to a repository that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: