opentelemetry-instrumentation-graphql 0.18.1 → 0.19.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: 936584584f2431bf56affd43789eac89bb421a56c30215707fe235e82d3ac6b3
4
- data.tar.gz: 8d3c6b7378e435274be69cc29faf7b3a906421645d0a59a6d5290bde805a3e31
3
+ metadata.gz: 542016b7094bfd94219e6d8a2180971009cd08caffd41e0f2819a792d8775ee1
4
+ data.tar.gz: 460a78934587387c84e7c8dcaec70a4c5930cedbff81ac85e6383433e3cfd8aa
5
5
  SHA512:
6
- metadata.gz: 94a0609662c0e59af0e95aeb9a1eec2d2ea2ab69f4049b6aa166a0fff9988d4e2e2e8d37ed69dcb341d17c18c163c37e9f6b173068f03eced7ca7d2b785a79d1
7
- data.tar.gz: dfeb8151c85990c0d1372e33822ea151646262d204d475d90d3e7823801449536c0451700df81d9d22ea042e95e18fa5aba3f5dc405436535869aedf0fdb2c34
6
+ metadata.gz: cdbee4f0933b4f3449e11610f12525d4da8525c2c3b1b9763426363e9bb8e3f8ea98aa6dfe9ae17f57bfe52ae68278e39e3a0f04fb2f45289790d9c51db45740
7
+ data.tar.gz: 64861d1e2ab74bc3a0a46e13982d345d51d61370167763444c77e476a908fac1d3d357ef9f04af2345468332aa606a3efc77f0ff4c6e06c454a1cf0e4e7b9728
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release History: opentelemetry-instrumentation-graphql
2
2
 
3
+ ### v0.19.0 / 2021-08-12
4
+
5
+ * ADDED: Add support for graphql errors
6
+ * DOCS: Update docs to rely more on environment variable configuration
7
+
3
8
  ### v0.18.1 / 2021-06-23
4
9
 
5
10
  * (No significant changes)
@@ -27,8 +27,18 @@ module OpenTelemetry
27
27
  def platform_trace(platform_key, key, data)
28
28
  return yield if platform_key.nil?
29
29
 
30
- tracer.in_span(platform_key, attributes: attributes_for(key, data)) do |_span|
31
- yield
30
+ tracer.in_span(platform_key, attributes: attributes_for(key, data)) do |span|
31
+ yield.tap do |response|
32
+ errors = response[:errors]&.compact&.map { |e| e.to_h }&.to_json if key == 'validate'
33
+ unless errors.nil?
34
+ span.add_event(
35
+ 'graphql.validation.error',
36
+ attributes: {
37
+ 'message' => errors
38
+ }
39
+ )
40
+ end
41
+ end
32
42
  end
33
43
  end
34
44
 
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module GraphQL
10
- VERSION = '0.18.1'
10
+ VERSION = '0.19.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.18.1
4
+ version: 0.19.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: 2021-06-24 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.rc2
19
+ version: 1.0.0.rc3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0.rc2
26
+ version: 1.0.0.rc3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-instrumentation-base
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.1
33
+ version: 0.18.2
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.18.1
40
+ version: 0.18.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -213,10 +213,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
213
213
  licenses:
214
214
  - Apache-2.0
215
215
  metadata:
216
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-graphql/v0.18.1/file.CHANGELOG.html
216
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-graphql/v0.19.0/file.CHANGELOG.html
217
217
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/graphql
218
218
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
219
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-graphql/v0.18.1
219
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-graphql/v0.19.0
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: