opentelemetry-instrumentation-graphql 0.28.3 → 0.28.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eefa4b1bda95788acd41545ad29ef65b3d111009331b04308a81e818397dc3ce
4
- data.tar.gz: cad620d5fed15d6db5262c1be3bb308163b6838de7364c6db3cc89bd870f643a
3
+ metadata.gz: b49a420ec63288497febd2ecfd14825b563d37a48a1a29c7542c73e6859fb9ae
4
+ data.tar.gz: 65df6c52c32a1cc5923c64b7a6c12e3128dacd6e1616ab0c97f6fe7d5ff1b127
5
5
  SHA512:
6
- metadata.gz: ca1be5655d23d72000ad45dfcb49be92ec4bcc69b01620d12f9b0d33a1da04279700e6d9d689cb128d1ec12e1521787e8d2f651552ca56f82e06d6a8440226d8
7
- data.tar.gz: 46d68f1062c5a1104a33fa24f26a88616c96304a7b887377ee9ad40cbcbfa4746668f47e7c9d755d723d34b72e0a0eb3203ccc5da522c53abbbbc595fde96413
6
+ metadata.gz: b7210c84a68252c391551c85ebba1a065a9b30a41707baa96642d9c2079eb1a132fdd3297c9a58fdb3d0a0c22bfd9463fa1ecf8a0359b1f48fa8843a166548c7
7
+ data.tar.gz: ceaa834172f002a38dccc9af2c88ecbdfd76f5d67b328091ab6f6cc423218f3adc2ecc155b6b7bacad619f11866c3f30891a54ca362667a973ed6f30d9d2b226
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-graphql
2
2
 
3
+ ### v0.28.4 / 2024-07-30
4
+
5
+ * FIXED: Add super calls to GraphqlTrace
6
+
3
7
  ### v0.28.3 / 2024-07-23
4
8
 
5
9
  * DOCS: Add cspell to CI
@@ -60,15 +60,15 @@ module OpenTelemetry
60
60
  end
61
61
 
62
62
  def execute_multiplex(multiplex:, &block)
63
- tracer.in_span('graphql.execute_multiplex', &block)
63
+ tracer.in_span('graphql.execute_multiplex') { super }
64
64
  end
65
65
 
66
66
  def lex(query_string:, &block)
67
- tracer.in_span('graphql.lex', &block)
67
+ tracer.in_span('graphql.lex') { super }
68
68
  end
69
69
 
70
70
  def parse(query_string:, &block)
71
- tracer.in_span('graphql.parse', &block)
71
+ tracer.in_span('graphql.parse') { super }
72
72
  end
73
73
 
74
74
  def validate(query:, validate:, &block)
@@ -89,11 +89,11 @@ module OpenTelemetry
89
89
  end
90
90
 
91
91
  def analyze_multiplex(multiplex:, &block)
92
- tracer.in_span('graphql.analyze_multiplex', &block)
92
+ tracer.in_span('graphql.analyze_multiplex') { super }
93
93
  end
94
94
 
95
95
  def analyze_query(query:, &block)
96
- tracer.in_span('graphql.analyze_query', &block)
96
+ tracer.in_span('graphql.analyze_query') { super }
97
97
  end
98
98
 
99
99
  def execute_query(query:, &block)
@@ -102,11 +102,13 @@ module OpenTelemetry
102
102
  attributes['graphql.operation.type'] = query.selected_operation.operation_type
103
103
  attributes['graphql.document'] = query.query_string
104
104
 
105
- tracer.in_span('graphql.execute_query', attributes: attributes, &block)
105
+ tracer.in_span('graphql.execute_query', attributes: attributes) do
106
+ super
107
+ end
106
108
  end
107
109
 
108
110
  def execute_query_lazy(query:, multiplex:, &block)
109
- tracer.in_span('graphql.execute_query_lazy', &block)
111
+ tracer.in_span('graphql.execute_query_lazy') { super }
110
112
  end
111
113
 
112
114
  def execute_field(field:, query:, ast_node:, arguments:, object:, &block)
@@ -133,7 +135,7 @@ module OpenTelemetry
133
135
 
134
136
  attributes = @_otel_type_attrs_cache[type]
135
137
 
136
- tracer.in_span(platform_key, attributes: attributes, &block)
138
+ tracer.in_span(platform_key, attributes: attributes) { super }
137
139
  end
138
140
 
139
141
  def authorized_lazy(query:, type:, object:, &block)
@@ -141,19 +143,19 @@ module OpenTelemetry
141
143
  return super unless platform_key
142
144
 
143
145
  attributes = @_otel_lazy_type_attrs_cache[type]
144
- tracer.in_span(platform_key, attributes: attributes, &block)
146
+ tracer.in_span(platform_key, attributes: attributes) { super }
145
147
  end
146
148
 
147
149
  def resolve_type(query:, type:, object:, &block)
148
150
  platform_key = @_otel_resolve_type_key_cache[type]
149
151
  attributes = @_otel_type_attrs_cache[type]
150
- tracer.in_span(platform_key, attributes: attributes, &block)
152
+ tracer.in_span(platform_key, attributes: attributes) { super }
151
153
  end
152
154
 
153
155
  def resolve_type_lazy(query:, type:, object:, &block)
154
156
  platform_key = @_otel_resolve_type_key_cache[type]
155
157
  attributes = @_otel_lazy_type_attrs_cache[type]
156
- tracer.in_span(platform_key, attributes: attributes, &block)
158
+ tracer.in_span(platform_key, attributes: attributes) { super }
157
159
  end
158
160
 
159
161
  private
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module GraphQL
10
- VERSION = '0.28.3'
10
+ VERSION = '0.28.4'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.3
4
+ version: 0.28.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2024-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -214,10 +214,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
214
214
  licenses:
215
215
  - Apache-2.0
216
216
  metadata:
217
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-graphql/0.28.3/file/CHANGELOG.md
217
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-graphql/0.28.4/file/CHANGELOG.md
218
218
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/graphql
219
219
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
220
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-graphql/0.28.3
220
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-graphql/0.28.4
221
221
  post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths: