chore(yabeda): add graphql metrics
This commit is contained in:
parent
696c8458d7
commit
3dbb2266d2
3 changed files with 6 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -103,6 +103,7 @@ gem 'view_component'
|
|||
gem 'vite_rails'
|
||||
gem 'warden'
|
||||
gem 'webrick', require: false
|
||||
gem 'yabeda-graphql'
|
||||
gem 'yabeda-prometheus'
|
||||
gem 'yabeda-sidekiq'
|
||||
gem 'zipline'
|
||||
|
|
|
@ -838,6 +838,9 @@ GEM
|
|||
anyway_config (>= 1.0, < 3)
|
||||
concurrent-ruby
|
||||
dry-initializer
|
||||
yabeda-graphql (0.2.3)
|
||||
graphql (>= 1.9, < 3)
|
||||
yabeda (~> 0.2)
|
||||
yabeda-prometheus (0.9.1)
|
||||
prometheus-client (>= 3.0, < 5.0)
|
||||
rack
|
||||
|
@ -997,6 +1000,7 @@ DEPENDENCIES
|
|||
web-console
|
||||
webmock
|
||||
webrick
|
||||
yabeda-graphql
|
||||
yabeda-prometheus
|
||||
yabeda-sidekiq
|
||||
zipline
|
||||
|
|
|
@ -147,6 +147,7 @@ class API::V2::Schema < GraphQL::Schema
|
|||
use Timeout, max_seconds: 30
|
||||
use GraphQL::Batch
|
||||
use GraphQL::Backtrace
|
||||
use Yabeda::GraphQL
|
||||
|
||||
if Rails.env.development?
|
||||
class LogQueryDepth < GraphQL::Analysis::AST::QueryDepth
|
||||
|
|
Loading…
Reference in a new issue