9bfb012a56
This key is useful to reduce the amount of logic needed on the frontend: if `has_warnings` is true, then the frontend knows that the request in question has warnings for some metric.
14 lines
527 B
Ruby
14 lines
527 B
Ruby
require 'peek/adapters/redis'
|
|
|
|
Peek::Adapters::Redis.prepend ::Gitlab::PerformanceBar::RedisAdapterWhenPeekEnabled
|
|
Peek.singleton_class.prepend ::Gitlab::PerformanceBar::WithTopLevelWarnings
|
|
|
|
Rails.application.config.peek.adapter = :redis, { client: ::Redis.new(Gitlab::Redis::Cache.params) }
|
|
|
|
Peek.into Peek::Views::Host
|
|
Peek.into Peek::Views::ActiveRecord
|
|
Peek.into Peek::Views::Gitaly
|
|
Peek.into Peek::Views::RedisDetailed
|
|
Peek.into Peek::Views::Rugged
|
|
|
|
Peek.into Peek::Views::Tracing if Labkit::Tracing.tracing_url_enabled?
|