opentelemetry-api 1.2.0 → 1.2.2
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 +10 -0
- data/lib/opentelemetry/context/propagation/rack_env_getter.rb +2 -1
- data/lib/opentelemetry/trace/tracer.rb +10 -2
- data/lib/opentelemetry/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b68df866cd6a0a88e8b0f5827c850ff3e9f37ae9863b4a8d47e6158402fd5d0a
|
4
|
+
data.tar.gz: 4cc7c530b54324d424790512a9bed9dbcbd636c83a6d9d7213b524b3b3ebc874
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 800b647bb5573d3a467efdc428b169c66c8a978d3f84e2b8670d2e05f20d6c226050aab727071da709c87610f35e8c7a59715a75cc27be6cdc0959bdaf70299c
|
7
|
+
data.tar.gz: 9f4e8512e94efb0512cd57ed0566d0ed1b0f51481121e9252691cef18e8c6e2d21a578fe7c09bca5754e0c333dc9b72404c7ac9e6ad4a1cba13f42003a632bbb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release History: opentelemetry-api
|
2
2
|
|
3
|
+
### v1.2.2 / 2023-08-15
|
4
|
+
|
5
|
+
* FIXED: Patch the issue for frozen string on ruby < 3.0 with string interpolation
|
6
|
+
* FIXED: Performance regression in_span
|
7
|
+
* FIXED: In_span performance
|
8
|
+
|
9
|
+
### v1.2.1 / 2023-07-29
|
10
|
+
|
11
|
+
* DOCS: Describe Tracer#in_span arguments
|
12
|
+
|
3
13
|
### v1.2.0 / 2023-06-08
|
4
14
|
|
5
15
|
* BREAKING CHANGE: Remove support for EoL Ruby 2.7
|
@@ -21,12 +21,20 @@ module OpenTelemetry
|
|
21
21
|
# On exit, the Span that was active before calling this method will be reactivated. If an
|
22
22
|
# exception occurs during the execution of the provided block, it will be recorded on the
|
23
23
|
# span and reraised.
|
24
|
+
#
|
25
|
+
# @param name [String] the name of the span
|
26
|
+
# @param attributes [optional Hash] attributes to attach to the span {String => String,
|
27
|
+
# Numeric, Boolean, Array<String, Numeric, Boolean>}
|
28
|
+
# @param links [optional Array] an array of OpenTelemetry::Trace::Link instances
|
29
|
+
# @param start_timestamp [optional Integer] nanoseconds since Epoch
|
30
|
+
# @param kind [optional Symbol] One of :internal, :server, :client, :producer, :consumer
|
31
|
+
#
|
24
32
|
# @yield [span, context] yields the newly created span and a context containing the
|
25
33
|
# span to the block.
|
26
|
-
def in_span(name, attributes: nil, links: nil, start_timestamp: nil, kind: nil
|
34
|
+
def in_span(name, attributes: nil, links: nil, start_timestamp: nil, kind: nil)
|
27
35
|
span = nil
|
28
36
|
span = start_span(name, attributes: attributes, links: links, start_timestamp: start_timestamp, kind: kind)
|
29
|
-
Trace.with_span(span,
|
37
|
+
Trace.with_span(span) { |s, c| yield s, c }
|
30
38
|
rescue Exception => e # rubocop:disable Lint/RescueException
|
31
39
|
span&.record_exception(e)
|
32
40
|
span&.status = Status.error("Unhandled exception of type: #{e.class}")
|
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.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ipsa
|
@@ -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.2.
|
204
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.2/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.2.
|
207
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.2.2
|
208
208
|
post_install_message:
|
209
209
|
rdoc_options: []
|
210
210
|
require_paths:
|