Sitelet https://github.com/microsoft/ApplicationInsights-dotnet/issues/1179
Skip to content

Metric Aggregator uses dedicated thread and hence should catch all exceptions #1179

Description

MetricAggregator is the only place in this SDK which creates a new Thread for running background task. The code should be protected from ever throwing unhandled exception as it could crash the application. While no existing occurences are reported, this should be done to avoid issues like microsoft/ApplicationInsights-dotnet-server#1088

this.aggregationThread = new Thread(this.Run);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions