Use debug log level for send event log statements - #1343
Conversation
|
I made several changes in 4.3.0 to log more information when the SDK failed to send events. PR: #1298 |
|
Thanks for the feedback @st0012. The log statements we are seeing are of the form:
These are being generated from This commit appears to be responsible for the change. |
|
@nhippenmeyer Thanks for the feedback. But based on Ruby logger's level definition:
I think using Instead, I think the issue could be on the newly added sidekiq tracing. If the sidekiq tracing increases the volume of transactions so much, would you instead considering stop/reduce that? Also, how valuable do you think this feature provides to your team? |
|
I've disabled sidekiq tracing and confirmed the number of log events has returned to previous levels. I'm not sure how valuable the tracing feature would be to our team since we haven't utilized any of the features yet, but would consider enabling it again in the future if we can find away around this logging issue. Thanks for your help here @st0012. |
|
How do you turn off sidekiq's performance tracing though? With Also, I'm not familiar with your application but it sounds like you have an enormous number of background jobs. If that's the case, I'd suggest you use config.traces_sampler = lambda do |sampling_context|
transaction_context = sampling_context[:transaction_context]
op = transaction_context[:op]
if op.match? /request/
0.1 # the rate for requests
elsif op.match? /sidekiq/
0.001 # so you (roughly) only get 1000 transactions per million jobs
end
end |
We were previously using a sample rate of 0.5 with: I like your suggestion of configuring the sample rate independently for Sidekiq. We do run a very high number of background jobs (~12M/day) so sampling them at a lower rate makes sense. Thanks again for the help! |
For applications that trigger large volumes of events, these log statements can quickly incur large costs from 3rd party logging services. We should have the option to disable them without having to set the log level application-wide to
warnor higher.The 4.3.0 release appears to be responsible for a large increase in the number of these log statements. Our application went from generating ~30k log statements per day on v4.2.2 to ~6M per day on v4.3.0.