opentelemetry-api 1.3.0 → 1.4.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 +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +4 -1
- data/lib/opentelemetry/baggage/builder.rb +1 -1
- data/lib/opentelemetry/baggage/propagation/text_map_propagator.rb +1 -1
- data/lib/opentelemetry/baggage.rb +1 -1
- data/lib/opentelemetry/trace/propagation/trace_context.rb +1 -1
- data/lib/opentelemetry/trace/span_kind.rb +1 -1
- data/lib/opentelemetry/version.rb +1 -1
- data/lib/opentelemetry.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63e6ba956fec08e677efff95b2583b1d8f12dd4b0f4a9d585b1b1b7d13564188
|
4
|
+
data.tar.gz: b470edbb7ac15c8242015dd3859a21b727e291446e6bec8ff8adf06b113d6368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a41da52172647f158a0df4091dbef31b0585a0153fc0d39c62186a06290083b199ac42a6bec61f30980ba3c35f8f271d21c279daa9465a254a930b251b758b96
|
7
|
+
data.tar.gz: 434a8ac66cfc35ad85529680e839897b2591ad8055d4eb8deadf46ef1f16a6e491e35f41a90053b41eb778d465d58655f0e6dc04dae578c1f4168aa44b257384
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Release History: opentelemetry-api
|
2
2
|
|
3
|
+
### v1.4.0 / 2024-08-27
|
4
|
+
|
5
|
+
* ADDED: Include backtrace first line for better debug info
|
6
|
+
|
3
7
|
### v1.3.0 / 2024-07-24
|
4
8
|
|
5
9
|
* ADDED: Add add_link to span api/sdk
|
@@ -71,7 +75,7 @@
|
|
71
75
|
|
72
76
|
* BREAKING CHANGE: Remove optional parent_context from in_span [729](https://github.com/open-telemetry/opentelemetry-ruby/pull/729)
|
73
77
|
* BREAKING CHANGE: Refactor Baggage to remove Noop* [800](https://github.com/open-telemetry/opentelemetry-ruby/pull/800)
|
74
|
-
- The noop baggage
|
78
|
+
- The noop baggage manager has been removed.
|
75
79
|
- The baggage management methods are now available through OpenTelemetry::Baggage#method, previously OpenTelemetry.baggage#method
|
76
80
|
* BREAKING CHANGE: Total order constraint on span.status= [805](https://github.com/open-telemetry/opentelemetry-ruby/pull/805)
|
77
81
|
- The OpenTelemetry::Trace::Util::HttpToStatus module has been removed as it was incorrectly setting the span status to OK for codes codes in the range 100..399
|
data/README.md
CHANGED
@@ -12,7 +12,10 @@ OpenTelemetry provides a single set of APIs, libraries, agents, and collector se
|
|
12
12
|
|
13
13
|
The `opentelemetry-api` gem defines the core OpenTelemetry interfaces in the form of abstract classes and no-op implementations. That is, it defines interfaces and data types sufficient for a library or application to code against to produce telemetry data, but does not actually collect, analyze, or export the data.
|
14
14
|
|
15
|
-
To collect and analyze telemetry data, *applications* should also
|
15
|
+
To collect and analyze telemetry data, *applications* should also
|
16
|
+
install a concrete implementation of the API, such as the
|
17
|
+
`opentelemetry-sdk` gem. However, *libraries* that produce telemetry
|
18
|
+
data should depend only on `opentelemetry-api`, deferring the choice of concrete implementation to the application developer.
|
16
19
|
|
17
20
|
## How do I get started?
|
18
21
|
|
@@ -21,7 +21,7 @@ module OpenTelemetry
|
|
21
21
|
# @param [String] key The key to store this value under
|
22
22
|
# @param [String] value String value to be stored under key
|
23
23
|
# @param [optional String] metadata This is here to store properties
|
24
|
-
# received from other W3C Baggage
|
24
|
+
# received from other W3C Baggage implementations but is not exposed in
|
25
25
|
# OpenTelemetry. This is condsidered private API and not for use by
|
26
26
|
# end-users.
|
27
27
|
def set_value(key, value, metadata: nil)
|
@@ -100,7 +100,7 @@ module OpenTelemetry
|
|
100
100
|
|
101
101
|
def encode_value(key, entry)
|
102
102
|
result = +"#{CGI.escape(key.to_s)}=#{CGI.escape(entry.value.to_s)}"
|
103
|
-
# We preserve metadata
|
103
|
+
# We preserve metadata received on extract and assume it's already formatted
|
104
104
|
# for transport. It's sent as-is without further processing.
|
105
105
|
result << ";#{entry.metadata}" if entry.metadata
|
106
106
|
result
|
@@ -73,7 +73,7 @@ module OpenTelemetry
|
|
73
73
|
# @param [String] key The key to store this value under
|
74
74
|
# @param [String] value String value to be stored under key
|
75
75
|
# @param [optional String] metadata This is here to store properties
|
76
|
-
# received from other W3C Baggage
|
76
|
+
# received from other W3C Baggage implementations but is not exposed in
|
77
77
|
# OpenTelemetry. This is condsidered private API and not for use by
|
78
78
|
# end-users.
|
79
79
|
# @param [optional Context] context The context to update with new
|
@@ -10,7 +10,7 @@ require 'opentelemetry/trace/propagation/trace_context/text_map_propagator'
|
|
10
10
|
module OpenTelemetry
|
11
11
|
module Trace
|
12
12
|
module Propagation
|
13
|
-
# The TraceContext module contains injectors, extractors, and
|
13
|
+
# The TraceContext module contains injectors, extractors, and utilities
|
14
14
|
# for context propagation in the W3C Trace Context format.
|
15
15
|
module TraceContext
|
16
16
|
extend self
|
@@ -26,7 +26,7 @@ module OpenTelemetry
|
|
26
26
|
# spans.
|
27
27
|
PRODUCER = :producer
|
28
28
|
|
29
|
-
# Indicates that the span describes consumer
|
29
|
+
# Indicates that the span describes consumer receiving a message from a broker. Unlike client
|
30
30
|
# and server, there is no direct critical path latency relationship between producer and
|
31
31
|
# consumer spans.
|
32
32
|
CONSUMER = :consumer
|
data/lib/opentelemetry.rb
CHANGED
@@ -34,7 +34,7 @@ module OpenTelemetry
|
|
34
34
|
# @return [Callable] configured error handler or a default that logs the
|
35
35
|
# exception and message at ERROR level.
|
36
36
|
def error_handler
|
37
|
-
@error_handler ||= ->(exception: nil, message: nil) { logger.error("OpenTelemetry error: #{[message, exception&.message].compact.join(' - ')}") }
|
37
|
+
@error_handler ||= ->(exception: nil, message: nil) { logger.error("OpenTelemetry error: #{[message, exception&.message, exception&.backtrace&.first].compact.join(' - ')}") }
|
38
38
|
end
|
39
39
|
|
40
40
|
# Handles an error by calling the configured error_handler.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.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: 2024-
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ipsa
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
103
|
+
version: '1.65'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '1.
|
110
|
+
version: '1.65'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,10 +201,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
201
201
|
licenses:
|
202
202
|
- Apache-2.0
|
203
203
|
metadata:
|
204
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.
|
204
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.4.0/file.CHANGELOG.html
|
205
205
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/api
|
206
206
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
207
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.
|
207
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.4.0
|
208
208
|
post_install_message:
|
209
209
|
rdoc_options: []
|
210
210
|
require_paths:
|