opentelemetry-api 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/opentelemetry/context/propagation/rack_env_getter.rb +3 -1
- data/lib/opentelemetry/trace/span.rb +17 -0
- 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: 2044ecfc3776d70aa668bcbd537f9df904f3a48a19b3b1daa67d0632686b3358
|
4
|
+
data.tar.gz: 996749298853bb15d62cadff700e06a1f3bcb505f5b49786b713c1daa1796165
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12c9863e4b90e34f5b4d6e2e3e5b97244d609e5381d554b39d461e77cfff5e7f8130b1389c68743d6fb7ea3080321aa4b12dc56e3ca78cac20fda1cc0100e7b7
|
7
|
+
data.tar.gz: 990f49fa7ef5e2990283cf4b42af9a6ecaa4989078a7b084568806675a9a2d3ae635bb830bccc9626b51869e3f0bfc9df5406f2cdbfda6c33576e4fd92c26716
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Release History: opentelemetry-api
|
2
2
|
|
3
|
+
### v0.16.0 / 2021-03-17
|
4
|
+
|
5
|
+
* ADDED: Span#add_attributes
|
6
|
+
* FIXED: Handle rack env getter edge cases
|
7
|
+
* DOCS: Replace Gitter with GitHub Discussions
|
8
|
+
|
3
9
|
### v0.15.0 / 2021-02-18
|
4
10
|
|
5
11
|
* ADDED: Add instrumentation config validation
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ For additional examples, see the [examples on github][examples-github].
|
|
49
49
|
|
50
50
|
The `opentelemetry-api` gem source is [on github][repo-github], along with related gems including `opentelemetry-sdk`.
|
51
51
|
|
52
|
-
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us
|
52
|
+
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us in [GitHub Discussions][discussions-url] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
|
53
53
|
|
54
54
|
## License
|
55
55
|
|
@@ -63,4 +63,4 @@ The `opentelemetry-api` gem is distributed under the Apache 2.0 license. See [LI
|
|
63
63
|
[examples-github]: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/examples
|
64
64
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
65
65
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
66
|
-
[
|
66
|
+
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -16,7 +16,7 @@ module OpenTelemetry
|
|
16
16
|
# Converts key into a rack-normalized key and reads it from the carrier.
|
17
17
|
# Useful for extract operations.
|
18
18
|
def get(carrier, key)
|
19
|
-
carrier[to_rack_key(key)]
|
19
|
+
carrier[to_rack_key(key)] || carrier[key]
|
20
20
|
end
|
21
21
|
|
22
22
|
# Reads all keys from a carrier and converts them from the rack-normalized
|
@@ -32,6 +32,7 @@ module OpenTelemetry
|
|
32
32
|
ret = 'HTTP_' + key
|
33
33
|
ret.tr!('-', '_')
|
34
34
|
ret.upcase!
|
35
|
+
ret
|
35
36
|
end
|
36
37
|
|
37
38
|
def from_rack_key(key)
|
@@ -39,6 +40,7 @@ module OpenTelemetry
|
|
39
40
|
ret = key[start..-1]
|
40
41
|
ret.tr!('_', '-')
|
41
42
|
ret.downcase!
|
43
|
+
ret
|
42
44
|
end
|
43
45
|
end
|
44
46
|
end
|
@@ -61,6 +61,23 @@ module OpenTelemetry
|
|
61
61
|
end
|
62
62
|
alias []= set_attribute
|
63
63
|
|
64
|
+
# Add attributes
|
65
|
+
#
|
66
|
+
# Note that the OpenTelemetry project
|
67
|
+
# {https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/data-semantic-conventions.md
|
68
|
+
# documents} certain "standard attributes" that have prescribed semantic
|
69
|
+
# meanings.
|
70
|
+
#
|
71
|
+
# @param [Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] attributes
|
72
|
+
# Values must be non-nil and (array of) string, boolean or numeric type.
|
73
|
+
# Array values must not contain nil elements and all elements must be of
|
74
|
+
# the same basic type (string, numeric, boolean).
|
75
|
+
#
|
76
|
+
# @return [self] returns itself
|
77
|
+
def add_attributes(attributes)
|
78
|
+
self
|
79
|
+
end
|
80
|
+
|
64
81
|
# Add an event to a {Span}.
|
65
82
|
#
|
66
83
|
# Example:
|
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: 0.
|
4
|
+
version: 0.16.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: 2021-
|
11
|
+
date: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ipsa
|
@@ -196,10 +196,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
196
196
|
licenses:
|
197
197
|
- Apache-2.0
|
198
198
|
metadata:
|
199
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v0.
|
199
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v0.16.0/file.CHANGELOG.html
|
200
200
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/api
|
201
201
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
202
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v0.
|
202
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v0.16.0
|
203
203
|
post_install_message:
|
204
204
|
rdoc_options: []
|
205
205
|
require_paths:
|