epsagon 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/epsagon.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 808ee2781331d674be9e661fdb982402a9fa118a7e530226334dac758ce80dbb
|
4
|
+
data.tar.gz: 370aad1ea87d60e10ffa0b0c6777951c290aaacb2074a6556b6b77a41f9606d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 223f608c05ddf216c1db46709d234604af81dca746fe16d5c4f24e89618450313c6e8a972f35fa2c2f5c6aa4b5811cd97e638d625dde9a1d5b0bc9a00575cf92
|
7
|
+
data.tar.gz: 5317d3432c01890de86919a5415322ed151002d12058027fa890cffa34ee32818d3e87e1d4484b5317aa1ab7c9047bf9347c2d5cf71e5718791ac6766e0163eb
|
data/lib/epsagon.rb
CHANGED
@@ -59,12 +59,12 @@ module Epsagon
|
|
59
59
|
OpenTelemetry::SDK::Trace::Export::ConsoleSpanExporter.new
|
60
60
|
)
|
61
61
|
else
|
62
|
-
configurator.add_span_processor OpenTelemetry::SDK::Trace::Export::
|
63
|
-
OpenTelemetry::Exporter::OTLP::Exporter.new(headers: {
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
62
|
+
configurator.add_span_processor OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
|
63
|
+
exporter: OpenTelemetry::Exporter::OTLP::Exporter.new(headers: {
|
64
|
+
'x-epsagon-token' => @@epsagon_config[:token]
|
65
|
+
},
|
66
|
+
endpoint: @@epsagon_config[:backend],
|
67
|
+
insecure: @@epsagon_config[:insecure] || false)
|
68
68
|
)
|
69
69
|
end
|
70
70
|
end
|