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 +4 -4
- data/.yardopts +9 -0
- data/CHANGELOG.md +5 -0
- data/lib/opencensus/stackdriver/version.rb +1 -1
- data/lib/opencensus/trace/exporters/stackdriver.rb +2 -0
- metadata +8 -13
- data/.gitignore +0 -13
- data/.rubocop.yml +0 -51
- data/.travis.yml +0 -10
- data/Gemfile +0 -4
- data/Rakefile +0 -21
- data/opencensus-stackdriver.gemspec +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04e6a40b57873eb8c4ddc3194c408a08ae507702
|
4
|
+
data.tar.gz: 16d40fb878966e05962eb6c28e73f6c7f4c67bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f45ab39ac8331d68ac9c38daafe415299b4b96039b292d794fba4c0cde1bd2a706cacbc3674ff690ee225ff02f9ac5d9b3bc451d7e7aac27d6fa24fb61b59a
|
7
|
+
data.tar.gz: c4d5422cb3f0972820a5b671a42786f5af116d86c250bd0e42aa6d3a7b676198c6e30f622f52e1cf2982ebd9aee66c8d681ba835296d96059622ba800b3a75f0
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
@@ -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.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
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.
|
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.
|
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.
|
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.
|
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
|
-
- ".
|
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
data/.rubocop.yml
DELETED
@@ -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"
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
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
|