Skip to content

Set Emitter's threads name for easier debugging (close #280)#258

Merged
Miranda Wilson (mscwilson) merged 2 commits intosnowplow:issue/280-set_emitter_thread_namesfrom
AcidFlow:feature/named-emitter-threads
Nov 30, 2021
Merged

Set Emitter's threads name for easier debugging (close #280)#258
Miranda Wilson (mscwilson) merged 2 commits intosnowplow:issue/280-set_emitter_thread_namesfrom
AcidFlow:feature/named-emitter-threads

Conversation

@AcidFlow
Copy link
Copy Markdown
Contributor

Add a ThreadFactory to the Emitter executor service to set
a custom name for threads that are created when calling execute().

Set a name for the buffer consumer thread in the BatchEmitter.

Naming these threads can be useful when investigating a thread dump, or
for monitoring purpose.

Add a ThreadFactory to the Emitter executor service to set
a custom name for threads that are created when calling execute().

Set a name for the buffer consumer thread in the BatchEmitter.

Naming these threads can be useful when investigating a thread dump, or
for monitoring purpose.
@snowplowcla Snowplow CLA bot (snowplowcla) added the cla:yes [Auto generated] Snowplow Contributor License Agreement has been signed. label Jun 29, 2020
@andy-may-at
Copy link
Copy Markdown

Would be great to have this feature merged in.
We just spent some time tracking down a bug in our app where repeated newing up of an Emitter was causing a lot of threads to be created.
Threads including 'snowplow' in the name would have saved a chunk of investigation time :)

(I found this PR as I was checking that an open one didn't exist already before submitting one myself)

@paulboocock
Copy link
Copy Markdown
Contributor

Hey Andy May (@andy-may-at)
Thanks for the feedback. It's on our roadmap to spend some time on the Java tracker soonish and this will definitely be part of it. Realistically it'll probably be August before the next release happens.

@mscwilson Miranda Wilson (mscwilson) changed the base branch from master to release/0.11.0 November 30, 2021 11:33
@mscwilson Miranda Wilson (mscwilson) changed the title Set Emitter's threads name for easier debugging Set Emitter's threads name for easier debugging (close #280) Nov 30, 2021
@mscwilson Miranda Wilson (mscwilson) changed the base branch from release/0.11.0 to issue/280-set_emitter_thread_names November 30, 2021 14:09
@mscwilson Miranda Wilson (mscwilson) merged commit 6318195 into snowplow:issue/280-set_emitter_thread_names Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla:yes [Auto generated] Snowplow Contributor License Agreement has been signed.

Development

Successfully merging this pull request may close these issues.

5 participants