uptrace 0.16.1 → 0.16.2
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/lib/uptrace.rb +10 -20
- data/lib/uptrace/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e560d02dc7fff00fe1417273235f621093fddf1dd2b89fec8eb26f25ec77137
|
4
|
+
data.tar.gz: f4425d572581c3b8863891e7f1df56c1acc2a8df19e96d56c5fadc138b147fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9d888b255f9b97deb19d115bfc0a16eca449a79df08c6262557be002f98460a3ba1db188caf5cf2266e7cbbe92aefd5fec1567a7c398ddcd04021f4315324e2
|
7
|
+
data.tar.gz: d831ec671858212f78caeadba72689d0735b0c85579af3bcec992e5df83c62d40af0a447dea647f0a28c993f277f8e3ecfbaa9aa9ef348734912523ecc947f26
|
data/CHANGELOG.md
ADDED
data/lib/uptrace.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'logger'
|
4
|
-
require 'opentelemetry'
|
5
4
|
|
6
5
|
# Uptrace provides Uptrace exporters for OpenTelemetry.
|
7
6
|
module Uptrace
|
@@ -24,26 +23,17 @@ module Uptrace
|
|
24
23
|
end
|
25
24
|
|
26
25
|
# ConfigureOpentelemetry configures OpenTelemetry to export data to Uptrace.
|
27
|
-
#
|
28
|
-
# - creates tracer provider;
|
29
|
-
# - registers Uptrace span exporter;
|
30
|
-
# - sets tracecontext + baggage composite context propagator.
|
26
|
+
# Specifically it configures and registers Uptrace span exporter.
|
31
27
|
#
|
32
|
-
# @param [
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
OpenTelemetry::Baggage::Propagation.text_map_injector
|
42
|
-
]
|
43
|
-
c.extractors = [
|
44
|
-
OpenTelemetry::Trace::Propagation::TraceContext.text_map_extractor,
|
45
|
-
OpenTelemetry::Baggage::Propagation.text_map_extractor
|
46
|
-
]
|
28
|
+
# @param [optional String] dsn
|
29
|
+
# @yieldparam [OpenTelemetry::SDK::Configurator] c Yields a configurator to the
|
30
|
+
# provided block
|
31
|
+
def configure_opentelemetry(dsn: '')
|
32
|
+
OpenTelemetry::SDK.configure do |c|
|
33
|
+
@client = Client.new(dsn: dsn) unless dsn.empty?
|
34
|
+
c.add_span_processor(client.span_processor) unless client.disabled?
|
35
|
+
|
36
|
+
yield c if block_given?
|
47
37
|
end
|
48
38
|
end
|
49
39
|
end
|
data/lib/uptrace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uptrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uptrace Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -172,6 +172,7 @@ extensions: []
|
|
172
172
|
extra_rdoc_files: []
|
173
173
|
files:
|
174
174
|
- ".yardopts"
|
175
|
+
- CHANGELOG.md
|
175
176
|
- LICENSE
|
176
177
|
- README.md
|
177
178
|
- RELEASE.md
|