helios-opentelemetry-sdk 0.1.7 → 0.1.8
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/Gemfile.lock +1 -1
- data/helios-opentelemetry-sdk.gemspec +2 -2
- data/lib/helios/opentelemetry/sdk/version.rb +1 -1
- data/lib/helios/opentelemetry/sdk.rb +15 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a294a567f0d759a752c2e8d21a5fd3ac8dec69c27fc57610c01fb4c11f46f98
|
4
|
+
data.tar.gz: 38e4e6befc504d25ddbd3a1b4fe4691fd057cd142a1906c5e1ba789572b3cf5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0be385a8d9d9571152359556c52d9e476c10ae1f18d6b5e6e603be34aa7c0416368686fd7edb33cc651a52e510cfeffd601300dae1c7bf0883ac1a875ca516f0
|
7
|
+
data.tar.gz: b78d3ea8698ef4e4c3a8a853781ecff4272ecb0f90c59a73e18f1f54aa62122da5ed01dc3e63fdba7a77dbcf2ab028c8b5627708cb72814a600395f0f0e0f8df
|
data/Gemfile.lock
CHANGED
@@ -6,9 +6,9 @@ require "helios/opentelemetry/sdk/version"
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "helios-opentelemetry-sdk"
|
8
8
|
spec.version = Helios::OpenTelemetry::SDK::VERSION
|
9
|
-
spec.authors = ["
|
9
|
+
spec.authors = ["Team Helios"]
|
10
10
|
spec.email = ["support@gethelios.dev"]
|
11
|
-
|
11
|
+
spec.license = "Apache-2.0"
|
12
12
|
spec.summary = "Helios OpenTelemetry SDK for Ruby"
|
13
13
|
spec.description = "Helios OpenTelemetry SDK for Ruby"
|
14
14
|
spec.homepage = "https://gethelios.dev"
|
@@ -23,6 +23,8 @@ module Helios
|
|
23
23
|
return
|
24
24
|
end
|
25
25
|
|
26
|
+
debug = helios_config[:debug]
|
27
|
+
::OpenTelemetry.logger.level = ::Logger::Severity::DEBUG if debug
|
26
28
|
environment = helios_config[:environment]
|
27
29
|
::OpenTelemetry::SDK.configure do |c|
|
28
30
|
c.service_name = service_name
|
@@ -41,6 +43,19 @@ module Helios
|
|
41
43
|
)
|
42
44
|
)
|
43
45
|
end
|
46
|
+
|
47
|
+
send_debug_span if debug
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.send_debug_span
|
51
|
+
provider = ::OpenTelemetry.tracer_provider
|
52
|
+
tracer = provider.tracer
|
53
|
+
debug_span = tracer.start_span('debug span')
|
54
|
+
debug_span.set_attribute('hs-debug-span', 'true')
|
55
|
+
debug_span.end
|
56
|
+
provider.force_flush
|
57
|
+
rescue StandardError => e
|
58
|
+
puts "Failed sending debug span: #{e.message}"
|
44
59
|
end
|
45
60
|
|
46
61
|
def self.get_span_exporter(helios_config)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helios-opentelemetry-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Team Helios
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,7 +76,8 @@ files:
|
|
76
76
|
- lib/helios/opentelemetry/sdk/instrumentations.rb
|
77
77
|
- lib/helios/opentelemetry/sdk/version.rb
|
78
78
|
homepage: https://gethelios.dev
|
79
|
-
licenses:
|
79
|
+
licenses:
|
80
|
+
- Apache-2.0
|
80
81
|
metadata:
|
81
82
|
homepage_uri: https://gethelios.dev
|
82
83
|
post_install_message:
|