opentelemetry-instrumentation-graphql 0.28.3 → 0.29.0

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: de86c3de535824eaeca27fceff4fb3f53a54cd5ab55d5d0d0a40f9bfde75c9bb
4
+ data.tar.gz: 031b96131390390ec82af5a2a474bcd2e0bd384ddfe1bb1b4b634f88c2e40e03
5
5
  SHA512:
6
- metadata.gz: ca1be5655d23d72000ad45dfcb49be92ec4bcc69b01620d12f9b0d33a1da04279700e6d9d689cb128d1ec12e1521787e8d2f651552ca56f82e06d6a8440226d8
7
- data.tar.gz: 46d68f1062c5a1104a33fa24f26a88616c96304a7b887377ee9ad40cbcbfa4746668f47e7c9d755d723d34b72e0a0eb3203ccc5da522c53abbbbc595fde96413
6
+ metadata.gz: 6a553df8c65b2d447709b7e2d7c162bef163e5ba45ec5ffeca6ea8dd44cf026a188bb8d07132b54d52db05744e4f8be0cfcd363e28ce6df087244618a7b4e86f
7
+ data.tar.gz: d5fb387a60dd75077d8b285a5d7145765fd0e830ccc5d664b98761b6847cb2dc0b4d76978f0c5c5afe1a30096d05caa87cf67efa4ff7edbe09467ccd5b967efb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-instrumentation-graphql
2
2
 
3
+ ### v0.29.0 / 2025-01-16
4
+
5
+ * BREAKING CHANGE: Set minimum supported version to Ruby 3.1
6
+
7
+ * ADDED: Set minimum supported version to Ruby 3.1
8
+
9
+ ### v0.28.4 / 2024-07-30
10
+
11
+ * FIXED: Add super calls to GraphqlTrace
12
+
3
13
  ### v0.28.3 / 2024-07-23
4
14
 
5
15
  * DOCS: Add cspell to CI
data/README.md CHANGED
@@ -6,7 +6,7 @@ The OpenTelemetry GraphQL Ruby gem is a community maintained instrumentation for
6
6
 
7
7
  Install the gem using:
8
8
 
9
- ```
9
+ ```console
10
10
  gem install opentelemetry-instrumentation-graphql
11
11
  ```
12
12
 
@@ -66,7 +66,7 @@ An example of usage can be seen in [`example/graphql.rb`](https://github.com/ope
66
66
 
67
67
  The `opentelemetry-instrumentation-graphql` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
68
68
 
69
- The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us in [GitHub Discussions][discussions-url] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
69
+ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry Ruby special interest group (SIG). You can get involved by joining us on our [GitHub Discussions][discussions-url], [Slack Channel][slack-channel] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
70
70
 
71
71
  ## License
72
72
 
@@ -78,4 +78,5 @@ The `opentelemetry-instrumentation-graphql` gem is distributed under the Apache
78
78
  [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
79
79
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
80
80
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
81
+ [slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
81
82
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -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.29.0'
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.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.1
33
+ version: 0.23.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.22.1
40
+ version: 0.23.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,28 +128,28 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.65.0
131
+ version: 1.69.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.65.0
138
+ version: 1.69.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-performance
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.20'
145
+ version: 1.23.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '1.20'
152
+ version: 1.23.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '3.19'
173
+ version: 3.24.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '3.19'
180
+ version: 3.24.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: yard
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -214,11 +214,11 @@ 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.29.0/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
221
- post_install_message:
220
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-graphql/0.29.0
221
+ post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths:
224
224
  - lib
@@ -226,15 +226,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: '3.0'
229
+ version: '3.1'
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.2.33
237
- signing_key:
236
+ rubygems_version: 3.3.27
237
+ signing_key:
238
238
  specification_version: 4
239
239
  summary: GraphQL instrumentation for the OpenTelemetry framework
240
240
  test_files: []