Skip to content

Commit 097c199

Browse files
authored
Adjust the tracing class name to be compatible with graphql-ruby 2.0 (#5)
1 parent 9f72858 commit 097c199

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/yabeda/graphql.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "yabeda"
22
require "yabeda/graphql/version"
3-
require "yabeda/graphql/tracing"
3+
require "yabeda/graphql/yabeda_tracing"
44
require "yabeda/graphql/instrumentation"
55

66
module Yabeda
@@ -31,7 +31,7 @@ class Error < StandardError; end
3131

3232
def self.use(schema)
3333
schema.instrument(:query, Instrumentation.new)
34-
schema.use Tracing, trace_scalars: true
34+
schema.use YabedaTracing, trace_scalars: true
3535
end
3636
end
3737
end

lib/yabeda/graphql/tracing.rb renamed to lib/yabeda/graphql/yabeda_tracing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Yabeda
44
module GraphQL
5-
class Tracing < ::GraphQL::Tracing::PlatformTracing
5+
class YabedaTracing < ::GraphQL::Tracing::PlatformTracing
66

77
self.platform_keys = {
88
'lex' => "graphql.lex",

0 commit comments

Comments
 (0)