opencensus-stackdriver 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 6fb557a73aab08a31a2fea1f7bc2c691237b719b
4
- data.tar.gz: ec795e33eeefb020d2504227a8c5ca2dc1981ea7
3
+ metadata.gz: 04e6a40b57873eb8c4ddc3194c408a08ae507702
4
+ data.tar.gz: 16d40fb878966e05962eb6c28e73f6c7f4c67bbd
5
5
  SHA512:
6
- metadata.gz: f736b8f182cba487f4eacc3d6ccf198f8f729d5695548c4512fcab2e6f750d0754a45ea886a56a79dda0a1825029ab6694e7d4ff1a9c6155d7306ccec13feec7
7
- data.tar.gz: ab968697df8ea76147662ad6dbddba12733b2e0d73b0713a46ff2779b3f0df6d648a504e2771dc7bdb9bf1e535b21165abea8cbdde6a76a278ba26410629a3a1
6
+ metadata.gz: 26f45ab39ac8331d68ac9c38daafe415299b4b96039b292d794fba4c0cde1bd2a706cacbc3674ff690ee225ff02f9ac5d9b3bc451d7e7aac27d6fa24fb61b59a
7
+ data.tar.gz: c4d5422cb3f0972820a5b671a42786f5af116d86c250bd0e42aa6d3a7b676198c6e30f622f52e1cf2982ebd9aee66c8d681ba835296d96059622ba800b3a75f0
@@ -0,0 +1,9 @@
1
+ --no-private
2
+ --title=OpenCensus Stackdriver Exporter
3
+ --markup markdown
4
+ ./lib/**/*.rb
5
+ -
6
+ README.md
7
+ CHANGELOG.md
8
+ CODE_OF_CONDUCT.md
9
+ CONTRIBUTING.md
@@ -1,5 +1,10 @@
1
1
  # Release History
2
2
 
3
+ ### 0.1.1 / 2018-04-13
4
+
5
+ * Clean unneeded files from the gem
6
+ * Do not issue a write request for an empty span list (bogdanap)
7
+
3
8
  ### 0.1.0 / 2018-03-09
4
9
 
5
10
  Initial release of the stackdriver export library
@@ -15,6 +15,6 @@
15
15
  module OpenCensus
16
16
  module Stackdriver
17
17
  ## Current OpenCensus Stackdriver plugin version
18
- VERSION = "0.1.0".freeze
18
+ VERSION = "0.1.1".freeze
19
19
  end
20
20
  end
@@ -108,6 +108,8 @@ module OpenCensus
108
108
  def export spans
109
109
  raise "Exporter is no longer running" unless @executor.running?
110
110
 
111
+ return nil if spans.nil? || spans.empty?
112
+
111
113
  @client_promise.execute
112
114
  export_promise = @client_promise.then do |client|
113
115
  export_as_batch(client, spans)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opencensus-stackdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-10 00:00:00.000000000 Z
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.30'
33
+ version: '0.31'
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.30'
40
+ version: '0.31'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opencensus
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.2'
47
+ version: '0.3'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.2'
54
+ version: '0.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -185,23 +185,18 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
- - ".gitignore"
189
- - ".rubocop.yml"
190
- - ".travis.yml"
188
+ - ".yardopts"
191
189
  - AUTHORS
192
190
  - CHANGELOG.md
193
191
  - CODE_OF_CONDUCT.md
194
192
  - CONTRIBUTING.md
195
- - Gemfile
196
193
  - LICENSE
197
194
  - README.md
198
- - Rakefile
199
195
  - lib/opencensus-stackdriver.rb
200
196
  - lib/opencensus/stackdriver.rb
201
197
  - lib/opencensus/stackdriver/version.rb
202
198
  - lib/opencensus/trace/exporters/stackdriver.rb
203
199
  - lib/opencensus/trace/exporters/stackdriver/converter.rb
204
- - opencensus-stackdriver.gemspec
205
200
  homepage: https://github.com/census-instrumentation/ruby-stackdriver-exporter
206
201
  licenses:
207
202
  - Apache-2.0
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- /docs/_site
12
- /docs/Gemfile.lock
13
- /docs/api/
@@ -1,51 +0,0 @@
1
- AllCops:
2
- Exclude:
3
- - "acceptance/**/*"
4
- - "integration/**/*"
5
- - "opencensus-stackdriver.gemspec"
6
- - "Rakefile"
7
- - "support/**/*"
8
- - "test/**/*"
9
- - "docs/**/*"
10
- - "tmp/**/*"
11
-
12
- Documentation:
13
- Enabled: false
14
-
15
- Style/StringLiterals:
16
- EnforcedStyle: double_quotes
17
- Style/MethodDefParentheses:
18
- EnforcedStyle: require_no_parentheses
19
- Style/NumericLiterals:
20
- Enabled: false
21
- Layout/SpaceAroundOperators:
22
- Enabled: false
23
- Metrics/ClassLength:
24
- Enabled: false
25
- Layout/EmptyLines:
26
- Enabled: false
27
- Style/EmptyElse:
28
- Enabled: false
29
- Metrics/CyclomaticComplexity:
30
- Max: 10
31
- Metrics/PerceivedComplexity:
32
- Max: 10
33
- Metrics/AbcSize:
34
- Max: 25
35
- Metrics/MethodLength:
36
- Max: 25
37
- Metrics/ParameterLists:
38
- Enabled: false
39
- Style/RescueModifier:
40
- Enabled: false
41
- Style/ClassVars:
42
- Enabled: false
43
- Style/TrivialAccessors:
44
- Enabled: false
45
- Style/CaseEquality:
46
- Enabled: false
47
- Style/GuardClause:
48
- Enabled: false
49
- Naming/FileName:
50
- Exclude:
51
- - "lib/opencensus-stackdriver.rb"
@@ -1,10 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.9
5
- - 2.3.6
6
- - 2.4.3
7
- - 2.5.0
8
- before_install: gem install bundler -v 1.16.1
9
- script:
10
- - bundle exec rake
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in opencensus.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,21 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
- require "yard"
4
-
5
- require "rubocop/rake_task"
6
- RuboCop::RakeTask.new
7
-
8
- Rake::TestTask.new :test do |t|
9
- t.libs << "test"
10
- t.libs << "lib"
11
- t.test_files = FileList["test/**/*_test.rb"]
12
- t.warning = false
13
- end
14
-
15
- YARD::Rake::YardocTask.new do |t|
16
- t.files = ['lib/**/*.rb'] # optional
17
- t.options = ['--output-dir', 'docs/api'] # optional
18
- t.stats_options = ['--list-undoc'] # optional
19
- end
20
-
21
- task :default => [:test, :rubocop, :yard]
@@ -1,38 +0,0 @@
1
- lib = File.expand_path("../lib", __FILE__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "opencensus/stackdriver/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "opencensus-stackdriver"
7
- spec.version = OpenCensus::Stackdriver::VERSION
8
- spec.authors = ["Daniel Azuma"]
9
- spec.email = ["dazuma@google.com"]
10
-
11
- spec.summary = "Stackdriver exporter for OpenCensus"
12
- spec.description = "Stackdriver exporter for OpenCensus"
13
- spec.homepage = "https://github.com/census-instrumentation/ruby-stackdriver-exporter"
14
- spec.license = "Apache-2.0"
15
-
16
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
- f.match(%r{^(test|spec|features)/})
18
- end
19
- spec.bindir = "exe"
20
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
- spec.require_paths = ["lib"]
22
-
23
- spec.required_ruby_version = ">= 2.2.0"
24
-
25
- spec.add_dependency "concurrent-ruby", "~> 1.0"
26
- spec.add_dependency "google-cloud-trace", "~> 0.30"
27
- spec.add_dependency "opencensus", "~> 0.2"
28
-
29
- spec.add_development_dependency "bundler", "~> 1.16"
30
- spec.add_development_dependency "faraday", "~> 0.13"
31
- spec.add_development_dependency "minitest", "~> 5.0"
32
- spec.add_development_dependency "minitest-focus", "~> 1.1"
33
- spec.add_development_dependency "rails", "~> 5.1.4"
34
- spec.add_development_dependency "rake", "~> 12.0"
35
- spec.add_development_dependency "rubocop", "~> 0.52"
36
- spec.add_development_dependency "yard", "~> 0.9"
37
- spec.add_development_dependency "yard-doctest", "~> 0.1.6"
38
- end