opentelemetry-sdk 0.7.0 → 0.8.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: b5510dccb3f3f94057ab6f17a625b8c71fbeeb958d2ec2de2eb732bfc59a4225
4
- data.tar.gz: 768a8e36a2a5a34458d6872584339a93d14d83b0302ed998626d21d97d4592b7
3
+ metadata.gz: 735ead8ec769c6a55c3e3393341366ebd4a7e83bd4bdd8a71ca474b470ab0566
4
+ data.tar.gz: 862d5aa24d401a6c215d852a4c601a58d858d452c9f3679cd33d71094de2eeb4
5
5
  SHA512:
6
- metadata.gz: ab2eb7f6eec8f1c62812e8a6f53502a2f29d017489078ede3c5fc4b4b9928435e71658c2cb506b73a16098ef681fffd9d088a028fd6938fec3da0d6a30cc3ec8
7
- data.tar.gz: a1ee4191297bdb3491988e0bca431274f29685057578781e3911bd9f34e66042826aa1528c5eda9172d65beeaf6aeed269185665eb0f6a2361500de09a311c10
6
+ metadata.gz: 8cb9becaedfbf07126a03c68f1968c988d499042c587a4d4e1100048660d2fa699b809c7d687eb90700d63ecceda4b31172e2efd25ea147abb0ccd7afbe9b476
7
+ data.tar.gz: 718f2a0a972e3a3f60beea5f4d3d8bff47f943fc24ecc2726182449f1cb3e958122e40971f5db7b96771b9380cd79b93f0ef7e3480d4319b5466d1c7ce3e0287
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-sdk
2
2
 
3
+ ### v0.8.0 / 2020-10-27
4
+
5
+ * BREAKING CHANGE: Move context/span methods to Trace module
6
+ * BREAKING CHANGE: Remove 'canonical' from status codes
7
+ * BREAKING CHANGE: Assorted SpanContext fixes
8
+
9
+ * FIXED: Move context/span methods to Trace module
10
+ * FIXED: Remove 'canonical' from status codes
11
+ * FIXED: Assorted SpanContext fixes
12
+
3
13
  ### v0.7.0 / 2020-10-07
4
14
 
5
15
  * ADDED: Add service_name setter to configurator
@@ -79,10 +79,6 @@ module OpenTelemetry
79
79
 
80
80
  # Attributes defining a computing instance (e.g. host).
81
81
  HOST_RESOURCE = {
82
- # Hostname of the host. It contains what the hostname command returns on the
83
- # host machine.
84
- hostname: 'host.hostname',
85
-
86
82
  # Unique host id. For Cloud this must be the instance_id assigned by the
87
83
  # cloud provider
88
84
  id: 'host.id',
@@ -294,7 +294,7 @@ module OpenTelemetry
294
294
  attrs.keep_if { |key, value| Internal.valid_key?(key) && Internal.valid_value?(value) }
295
295
  excess = attrs.size - max_attributes_per_link
296
296
  excess.times { attrs.shift } if excess.positive?
297
- OpenTelemetry::Trace::Link.new(link.context, attrs)
297
+ OpenTelemetry::Trace::Link.new(link.span_context, attrs)
298
298
  end.freeze
299
299
  end
300
300
 
@@ -37,11 +37,14 @@ module OpenTelemetry
37
37
  name ||= 'empty'
38
38
 
39
39
  with_parent ||= Context.current
40
- parent_span_context = current_span(with_parent).context
41
- parent_span_context = nil unless parent_span_context.valid?
42
- parent_span_id = parent_span_context&.span_id
43
- tracestate = parent_span_context&.tracestate
44
- trace_id = parent_span_context&.trace_id
40
+ parent_span_context = OpenTelemetry::Trace.current_span(with_parent).context
41
+ if parent_span_context.valid?
42
+ parent_span_id = parent_span_context.span_id
43
+ tracestate = parent_span_context.tracestate
44
+ trace_id = parent_span_context.trace_id
45
+ else
46
+ parent_span_context = nil
47
+ end
45
48
  trace_id ||= OpenTelemetry::Trace.generate_trace_id
46
49
  sampler = tracer_provider.active_trace_config.sampler
47
50
  result = sampler.should_sample?(trace_id: trace_id, parent_context: parent_span_context, links: links, name: name, kind: kind, attributes: attributes)
@@ -7,6 +7,6 @@
7
7
  module OpenTelemetry
8
8
  module SDK
9
9
  ## Current OpenTelemetry version
10
- VERSION = '0.7.0'
10
+ VERSION = '0.8.0'
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.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: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2020-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
19
+ version: 0.8.0
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: 0.7.0
26
+ version: 0.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -185,7 +185,11 @@ files:
185
185
  homepage: https://github.com/open-telemetry/opentelemetry-ruby
186
186
  licenses:
187
187
  - Apache-2.0
188
- metadata: {}
188
+ metadata:
189
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v0.8.0/file.CHANGELOG.html
190
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/sdk
191
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
192
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v0.8.0
189
193
  post_install_message:
190
194
  rdoc_options: []
191
195
  require_paths: