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

Ensure isEnabled = false won't start worker loop #2436

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Sep 9, 2024

Inside PayloadSenderV2, we also now early exit when events get queued.

Removed early exit from constructor, allow readonly fields to be initialized
so that when we start adding nullable annotations not all of them have to be nullable

Inside PayloadSenderV2, we also now early exit when events get queued.

Removed early exit from constructor, allow readonly fields to be initialized
so that when we start adding nullable annotations not all of them have to be nullable
@Mpdreamz Mpdreamz linked an issue Sep 9, 2024 that may be closed by this pull request
stevejgordon
stevejgordon previously approved these changes Sep 9, 2024
Copy link
Contributor

@stevejgordon stevejgordon left a comment

Choose a reason for hiding this comment

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

One nit, but otherwise, this LGTM.

src/Elastic.Apm/Report/PayloadSenderV2.cs Outdated Show resolved Hide resolved
src/Elastic.Apm/Report/PayloadSenderV2.cs Outdated Show resolved Hide resolved
Copy link
Contributor

@stevejgordon stevejgordon left a comment

Choose a reason for hiding this comment

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

LGTM

@Mpdreamz Mpdreamz merged commit 369b4a8 into main Sep 11, 2024
15 checks passed
@Mpdreamz Mpdreamz deleted the feature/isenabled-payloadsenderv2 branch September 11, 2024 07:57
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.

[BUG] NullReferenceException in PayloadSenderV2 if APM is disabled
2 participants