apollo-studio-tracing 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 676b93f9a1b7fdae4fa0d954064cdff300812e5f1d1673cbb2c179ad3e8fd777
4
- data.tar.gz: f24bfa49269991787e26320e3f5eb089acfaffb994348b55dcb13e83fbb9e5e6
3
+ metadata.gz: b2fbe79499e68b0284a12512586f981589eeaad72304b7382d0c16cfc3ae62bc
4
+ data.tar.gz: 4b36fc60703e64472959ed4894971ab31585ac61ae773d9f5a708b81f2686ab8
5
5
  SHA512:
6
- metadata.gz: f41489cdf1f1540e50c4dfcfafbaa1cc14d0746761a33aa2775c056804c95a3729430f7776a95509051de8374d27c702bcc106a029b65a897f9c57a492250377
7
- data.tar.gz: 2e40c8f8c03aecf4b182eb0b0a9ba4d816656127d0337e5c34d338a02de0ac5aab0039024a251f8b9402b58a560fd697cf861e8d17325a94c484fc76929182ba
6
+ metadata.gz: b3f157d91c138be592dbf43bdff59343ac2ecce22ea49c8ef533b359c84a851a7fb3250d1ffd34190720579f24d437375a1b5d4841e66ca0783c3e0ade95a1b9
7
+ data.tar.gz: 63f931580f7f145469b3ebb06756a6e37eaaf9022cf6b7108fef1a825d786efec2d69a05b3a9b454295ea65a562390651429e8ec529f4ec9d27981beeb613304
@@ -1,3 +1,10 @@
1
+ # [1.1.0](https://github.com/EnjoyTech/apollo-studio-tracing-ruby/compare/v1.0.1...v1.1.0) (2020-12-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * support global `enabled` flag for tracing ([16d9186](https://github.com/EnjoyTech/apollo-studio-tracing-ruby/commit/16d91865db51315c2b0a378402d96a9414a31c8f))
7
+
1
8
  ## [1.0.1](https://github.com/EnjoyTech/apollo-studio-tracing-ruby/compare/v1.0.0...v1.0.1) (2020-11-02)
2
9
 
3
10
 
@@ -28,7 +35,3 @@
28
35
 
29
36
  * Initial release. Substantially divergent from `apollo-federation-ruby`, so marking
30
37
  this as a breaking change.
31
-
32
- ## 1.0.0 (2020-10-23)
33
-
34
- - First release, based on https://github.com/Gusto/apollo-federation-ruby
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![CircleCI](https://circleci.com/gh/EnjoyTech/apollo-studio-tracing-ruby/tree/master.svg?style=svg)](https://circleci.com/gh/EnjoyTech/apollo-studio-tracing-ruby/tree/master)
4
4
 
5
- This gem extends the [GraphQL Ruby](http://graphql-ruby.org/) gem to add support for sending trace data to [Apollo Studio](https://www.apollographql.com/docs/studio/). It is intended to be a full-featured replacement for the unmaintained [apollo-tracing-ruby](https://github.com/uniiverse/apollo-tracing-ruby) gem, and it is built HEAVILY from the work done within the Gusto [apollo-federation-ruby](https://github.com/Gusto/apollo-federation-ruby) gem.
5
+ This gem extends the [GraphQL Ruby](http://graphql-ruby.org/) gem to add support for sending trace data to [Apollo Studio](https://www.apollographql.com/docs/studio/). It is intended to be a full-featured replacement for the unmaintained [apollo-tracing-ruby](https://github.com/uniiverse/apollo-tracing-ruby) gem, and it is built HEAVILY from the work done within the Gusto [apollo-federation-ruby](https://github.com/Gusto/apollo-federation-ruby) gem as well an exploratory branch created [here](https://github.com/salsify/apollo-tracing-ruby/tree/feature/new-apollo-api).
6
6
 
7
7
  ## DISCLAIMER
8
8
 
@@ -16,7 +16,9 @@ module ApolloStudioTracing
16
16
  # TODO: Initialize this to Rails.logger in a Railtie
17
17
  self.logger = ApolloLogger.new(STDOUT)
18
18
 
19
- def use(schema, **options)
19
+ def use(schema, enabled: true, **options)
20
+ return unless enabled
21
+
20
22
  tracer = ApolloStudioTracing::Tracer.new(**options)
21
23
  # TODO: Shutdown tracers when reloading code in Rails
22
24
  # (although it's unlikely you'll have Apollo Tracing enabled in development)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApolloStudioTracing
4
- VERSION = '1.0.1'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo-studio-tracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Saniwck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-02 00:00:00.000000000 Z
11
+ date: 2020-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql