opentelemetry-instrumentation-graphql 0.20.0 → 0.21.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: 73e66f5c3fb1f9820bd1f24648e9de53152ba79255a7c3d3c92089e5de3e46e8
4
- data.tar.gz: 75a2d7da79f38c155e134a2daed0a901f59bc5da30d1e135f7d35c2a3984cafa
3
+ metadata.gz: 48699b82e87fb857a932c25ee18b23fc7628d5f5396e1b19797f42414db99bbc
4
+ data.tar.gz: 3f450cd5c2a8f5255ee069bf434ee4e355af9be89f8b06352ad2d261f9a9085b
5
5
  SHA512:
6
- metadata.gz: b780153de8b5d7848b07fc9b85cb318c12b2f8f6070736828e9af72f553b384ce7fefc4f09a412ed51b88e73555d4fa8cf8608e71404d0264525b064f7db1396
7
- data.tar.gz: d6ca0979af86131a8adbd00db0f5a4767e8375d87dff12ce8e8e124af62acf8bc180ffafa11ec92c800189bfa87756e25b4f9173f4ca44b2c26e6e1f3ccd8384
6
+ metadata.gz: dfe590317f2815fe31fe8b9552851c1911b39a746ec573a1990b5b98754cea7f4c59569274d61e22af345ef58ec5e742ddd6f49f4e65f90d67c0849d63b994be
7
+ data.tar.gz: ed778297d96522297945f402626a847e33ddad9dad664a6eb4ba877d3d155902e7d1e46ef6812430a6d0bf0af7b6e8d9340dca3b017fc2ac6f3e1af9a383e033
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-graphql
2
2
 
3
+ ### v0.21.0 / 2022-07-12
4
+
5
+ * FIXED: Use semantic graphql attribute names
6
+
3
7
  ### v0.20.0 / 2022-06-09
4
8
 
5
9
  * Upgrading Base dependency version
data/README.md CHANGED
@@ -55,7 +55,7 @@ end
55
55
 
56
56
  ## Examples
57
57
 
58
- An example of usage can be seen in [`example/graphql.rb`](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/graphql/example/graphql.rb).
58
+ An example of usage can be seen in [`example/graphql.rb`](https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/graphql/example/graphql.rb).
59
59
 
60
60
  ## How can I get involved?
61
61
 
@@ -70,7 +70,7 @@ The `opentelemetry-instrumentation-graphql` gem is distributed under the Apache
70
70
  [graphql-home]: https://github.com/rmosolgo/graphql-ruby
71
71
  [bundler-home]: https://bundler.io
72
72
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
73
- [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
73
+ [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
74
74
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
75
75
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
76
76
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -74,9 +74,9 @@ module OpenTelemetry
74
74
  attributes = {}
75
75
  case key
76
76
  when 'execute_query'
77
- attributes['selected_operation_name'] = data[:query].selected_operation_name if data[:query].selected_operation_name
78
- attributes['selected_operation_type'] = data[:query].selected_operation.operation_type
79
- attributes['query_string'] = data[:query].query_string
77
+ attributes['graphql.operation.name'] = data[:query].selected_operation_name if data[:query].selected_operation_name
78
+ attributes['graphql.operation.type'] = data[:query].selected_operation.operation_type
79
+ attributes['graphql.document'] = data[:query].query_string
80
80
  end
81
81
  attributes
82
82
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module GraphQL
10
- VERSION = '0.20.0'
10
+ VERSION = '0.21.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.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2022-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -223,14 +223,14 @@ files:
223
223
  - lib/opentelemetry/instrumentation/graphql/instrumentation.rb
224
224
  - lib/opentelemetry/instrumentation/graphql/tracers/graphql_tracer.rb
225
225
  - lib/opentelemetry/instrumentation/graphql/version.rb
226
- homepage: https://github.com/open-telemetry/opentelemetry-ruby
226
+ homepage: https://github.com/open-telemetry/opentelemetry-contrib
227
227
  licenses:
228
228
  - Apache-2.0
229
229
  metadata:
230
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-graphql/v0.20.0/file.CHANGELOG.html
231
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/graphql
232
- bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
233
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-graphql/v0.20.0
230
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby-contrib/opentelemetry-instrumentation-graphql/v0.21.0/file.CHANGELOG.html
231
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/graphql
232
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
233
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby-contrib/opentelemetry-instrumentation-graphql/v0.21.0
234
234
  post_install_message:
235
235
  rdoc_options: []
236
236
  require_paths: