This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
fix: send cached events to use a single thread executor #405
Merged
marandaneto
merged 22 commits into
getsentry:master
from
marandaneto:fix/cached-events-timeout
May 16, 2020
Merged
fix: send cached events to use a single thread executor #405
marandaneto
merged 22 commits into
getsentry:master
from
marandaneto:fix/cached-events-timeout
May 16, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We discussed this offline but I wanted to leave one note: Let please leave some sort of timeout. Even if it's 30 seconds. IMHO 30 seconds waiting for a single event to be flushed is a lot but let's just not let the thread block forever without timeout at least |
marandaneto
changed the title
cached events should not have timeout
send cached events use a single executor
May 14, 2020
marandaneto
changed the title
send cached events use a single executor
send cached events to use a single executor
May 14, 2020
marandaneto
commented
May 14, 2020
sentry-core/src/main/java/io/sentry/core/transport/HttpTransport.java
Outdated
Show resolved
Hide resolved
marandaneto
commented
May 14, 2020
sentry-core/src/main/java/io/sentry/core/transport/HttpTransport.java
Outdated
Show resolved
Hide resolved
marandaneto
commented
May 14, 2020
marandaneto
commented
May 14, 2020
bruno-garcia
suggested changes
May 15, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some core bits changing here. I left some notes. Let me know if you'd like to discuss this on a call.
sentry-core/src/main/java/io/sentry/core/SendFireAndForgetEnvelopeSender.java
Outdated
Show resolved
Hide resolved
sentry-core/src/main/java/io/sentry/core/SendCachedEventFireAndForgetIntegration.java
Show resolved
Hide resolved
sentry-core/src/main/java/io/sentry/core/transport/HttpTransport.java
Outdated
Show resolved
Hide resolved
sentry-core/src/main/java/io/sentry/core/SendCachedEventFireAndForgetIntegration.java
Show resolved
Hide resolved
bruno-garcia
approved these changes
May 15, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 nice let's see how it goes
marandaneto
changed the title
send cached events to use a single executor
fix: send cached events to use a single thread executor
May 15, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📢 Type of change
📜 Description
send cached events to use a single executor.
💡 Motivation and Context
💚 How did you test it?
running it
📝 Checklist
🔮 Next steps