File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/rails_semantic_logger/extensions/sidekiq Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ The queue latency is the time between when the job was enqueued and when it was
87
87
filter environment = " production"
88
88
filter level = " info"
89
89
filter metric = " sidekiq.queue.latency"
90
- timechart latency: avg(metric_amount), group_by(name )
90
+ timechart latency: avg(metric_amount/ 1000 ), group_by(string(named_tags.queue) )
91
91
~~~
92
92
93
93
* http://github.com/reidmorrison/rails_semantic_logger
Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ class Config
129
129
end
130
130
end
131
131
end
132
- else
132
+ elsif Sidekiq . error_handlers . delete ( Sidekiq :: DEFAULT_ERROR_HANDLER )
133
133
# Sidekiq >= 6.5
134
- Sidekiq . error_handlers . delete ( Sidekiq :: DEFAULT_ERROR_HANDLER )
134
+ # Replace default error handler if present
135
135
Sidekiq . error_handlers << -> ( ex , ctx ) do
136
136
unless ctx . empty?
137
137
job_hash = ctx [ :job ] || { }
You can’t perform that action at this time.
0 commit comments