Skip to content
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

Rum initialization async #679

Closed

Conversation

Ejdangerfield
Copy link

Description

This PR addresses the ANR issues occurring due to synchronous IO operations on the main thread during the initialization of the OpenTelemetry SDK. The fix implements a buffered, thread-safe mechanism that temporarily stores signals in memory until a delegate exporter is asynchronously set up. Once the delegate is ready, the buffered signals are flushed to it, and subsequent exports are directed to the delegate.

I went back and forth on how to do a few things in here. One of the goals with this PR is to be consistent with existing sdk code. So while the approach im taking here may not be beautiful, I think it should fit with the existing code

@Ejdangerfield Ejdangerfield requested a review from a team as a code owner October 31, 2024 18:48
Copy link

CLA Not Signed

@Ejdangerfield Ejdangerfield deleted the rum-initialization-async branch October 31, 2024 18:49
@Ejdangerfield Ejdangerfield restored the rum-initialization-async branch October 31, 2024 19:02
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.

2 participants