Skip to content

Conversation

@bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Sep 19, 2024

Relates to Metrics Deprecation #3597

While marking the API as obsolete I also removed the shutdown flushing. I think it's fairly low risk and it fixes the deadlocking situation in getsentry/sentry-unity#1779

@bitsandfoxes bitsandfoxes changed the title fix: Fix deadlock during flushing fix: Marked SentrySdk.Metrics as obsolete Sep 20, 2024
@bitsandfoxes bitsandfoxes marked this pull request as ready for review September 23, 2024 21:04
Metrics.FlushAsync().ContinueWith(_ =>
CurrentClient.FlushAsync(_options.ShutdownTimeout).ConfigureAwait(false).GetAwaiter().GetResult()
).ConfigureAwait(false).GetAwaiter().GetResult();
CurrentClient.FlushAsync(_options.ShutdownTimeout).ConfigureAwait(false).GetAwaiter().GetResult();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we marking it as obsolete or removing the functionality in this PR? This change is removing metrics functionality right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see in the PR description:

While marking the API as obsolete I also removed the shutdown flushing. I think it's fairly low risk and it fixes the deadlocking situation in getsentry/sentry-unity#1779

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants