-
Notifications
You must be signed in to change notification settings - Fork 281
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
Data is being sampled even though sampling is disabled #1808
Comments
@Stardox , SDK and Server configuration looks fine. Could you please execute the following query and check if data is sampled.
Ref: [Knowing whether sampling is in operation] (https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling#knowing-whether-sampling-is-in-operation) |
@rajkumar-rangaraj, for majority of results the RetainedPercentage is 100. However I also see entries where the percentage is ~91, ~68 or ~75 just to name few. Not sure if this is relevant, but my App Insights resource is in South Central US region. |
@Stardox , If |
I'm having this same issue. Data sampling is set to 100% (all data) and with the above query I'm seeing retained percentage at ~53, ~48, ~60, etc. |
@rajkumar-rangaraj, there is only one application creating log entries in my AI component. But even if there were multiple, then theoretically speaking, it would only affect this retained percentage report - It should not simply drop / ignore telemetry entries, right? |
@rajkumar-rangaraj/@cijothomas , Getting the same issue as others here. Have ensured that only one application is creating log entries in AppInsights component, but data keeps getting sampled. |
@Stardox Did you by any chance find a solution to this issue. Would help if you could share your experience. Thanks in advance |
@Stardox @Huss-Dev @rajkumar-rangaraj |
We are facing the same issue, it would be great if anyone can share about the root cause of issue. |
If you believe data is being sampled at the ingestion side, despite turning it off, please open support ticket with Azure. If the SDK is sampling, despite configuring it to do otherwise, please reply here, and we can investigate. Please share a minimal repro for this behaviour. |
Hello, we're also facing the same issue here regarding an azure function deployed. Any info/help is appreciated |
Seeing same issue with Azure Functions v3, I have in the host.json. |
Please raise Azure functions issue in Azure functions runtime repo, as Functions uses a custom enablement of application insights sdk. |
This issue is stale because it has been open 300 days with no activity. Remove stale label or this will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. |
This solution worked in my case. Once the InterOP with Application Insights was disabled the correct settings got applied. |
We also face this issue:
still for lots of |
If you haven't added ApplicationInsights code in your application, but you have enabled ApplicationInsights from AppService portal (https://docs.microsoft.com/en-us/azure/azure-monitor/app/azure-web-apps-net-core?tabs=Windows%2Cwindows) then it will have sampling. This is independent of the Ingestion sampling. |
@cijothomas but what kind of sampling is enabled? How does it work? I have a feeling that for a particular |
You haven't enabled anything explicitly. When you enable auto-instrumentation (from app service's Application Insights blade - https://docs.microsoft.com/en-us/azure/azure-monitor/app/azure-web-apps), it enables Application Insights with a default setting. (it includes sampling as well). There is not much control one has if you chose auto-instrumentation. If you want to have full control, then you need to use the SDK based instrumentation. |
Aha. Thanks for that explanation. |
Please share the feedback in the docs page itself, so it won't get lost in this repo. |
Do you mean a pull request on this repo (update this file), or the Github button on the bottom of the Sampling page you shared? |
This issue is stale because it has been open 300 days with no activity. Remove stale label or this will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. |
Environment
The problem
Occasionally when reviewing App Insights logs of my Web App through Azure portal I notice that some of the entries within given telemetry operation are missing or that the whole telemetry operation is missing completely. By telemetry operation I mean all entries in the context of incoming HTTP request.
This behavior seems to be related to following message bubble which appears on top of App Insights window in Azure:
The message points to following documentation which I have walked through already and disabled the sampling both in the SDK and also in portal.
SDK configuration
This is how I have configured the AI Telemetry Client within my
Startup.cs
class:AI configuration through portal
I need to retain all telemetry data (even though it is only for couple of days) for diagnostic purposes. How can I achieve that?
The text was updated successfully, but these errors were encountered: