-
Notifications
You must be signed in to change notification settings - Fork 291
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
Issue with ITelemetryProcessor after migrating to aspnet core 2.1 #1563
Comments
Can you follow this step for adding your custom telemetry processor? Retrieving |
Thanks Cijo, looks like that solved the problem ! I wasn't aware of the new method for loading TelemetryProcessors :( |
Glad it helped. We are working to have this 'wiki' doc moved to official docs soon. |
This bit me too - What was confusing us was that in dev environment, our telemetry processor would hit a breakpoint but it appeared to still show in portal. |
Question about registering Telemetry Processors that need parameters ? I had before telemetry constructor like:
and with
I don't see how to pass my "paths" parameter with new
What would be the best method to pass parameters to my processor with the new method for registering the telemetry ? |
@peter-bozovic You have a couple of options:
For an example of the technique 1, see the Snapshot Debugger documentation here: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-snapshot-debugger#configure-snapshot-collection-for-aspnet-core-20-applications |
Keeping this open as a doc issue to include Pauls response to official docs. |
Note to self: assign to M Bullwinkle |
@mrbullwinkle any update? |
note to self: |
FYI: Paul's code samples were moved to here: |
This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I'm having different behavior since updated aspnet core project from 2.0 to 2.1 and AI library from 2.1.1 to 2.3
Not sure if this might be related to the new version of Entity Framework, but I'm having similar issue with filtering Azure Storage telemetry so I'm starting here.
Repro Steps
Im using following code to filter SQL requests so that they are not sent to Application Insights:
And in my startup.cs Configure method:
Actual Behavior
My TelemetryProcessor is never hit with DependencyTelemetry of Type == "SQL".
Even when checking all items going trough the TelemetryProcessor, there is nothing related to the Entity Framework.
However, the Request details in Azure Portal is displaying calls done to the database, they are not filtered.
Expected Behavior
Telemetry related to SQL call is filtered and not sent to Application Insights and not displayed in Request Details
Version Info
SDK Version : aspnet core 2.1
.NET Version : net47
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : nuGet
OS : Windows 10
Hosting Info (IIS/Azure WebApps/ etc) : Azure AppService
The text was updated successfully, but these errors were encountered: