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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 717d05eb6cd8e548d64ab94aae52f85b3b330b0b937fd3e0483ca77dd970da58
4
- data.tar.gz: ed4f766a7c8fe81dd3f417a3fbc0314be5531f478c50837b5fb05ca46b032e73
3
+ metadata.gz: 3a294a567f0d759a752c2e8d21a5fd3ac8dec69c27fc57610c01fb4c11f46f98
4
+ data.tar.gz: 38e4e6befc504d25ddbd3a1b4fe4691fd057cd142a1906c5e1ba789572b3cf5a
5
5
  SHA512:
6
- metadata.gz: 4019640f6873c4c6dbf45188d715bc3d8c887ccbf4d1a2002aa861b40b0de03e4081b15b49061749ce47931f4566577f503986b2843fda5f50aad6ceeab7c21f
7
- data.tar.gz: f2e3461c3bcf15856b0d76d16a6f929d66557af5cdbd52162c1972d95bbe0f6b0483ec0f562b79eb27a69fc6d3bfd115b7050ce4de172d0bffcd611060c2ad8d
6
+ metadata.gz: 0be385a8d9d9571152359556c52d9e476c10ae1f18d6b5e6e603be34aa7c0416368686fd7edb33cc651a52e510cfeffd601300dae1c7bf0883ac1a875ca516f0
7
+ data.tar.gz: b78d3ea8698ef4e4c3a8a853781ecff4272ecb0f90c59a73e18f1f54aa62122da5ed01dc3e63fdba7a77dbcf2ab028c8b5627708cb72814a600395f0f0e0f8df
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helios-opentelemetry-sdk (0.1.7)
4
+ helios-opentelemetry-sdk (0.1.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 = ["Ran Nozik"]
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"
@@ -1,7 +1,7 @@
1
1
  module Helios
2
2
  module OpenTelemetry
3
3
  module SDK
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.8'
5
5
  end
6
6
  end
7
7
  end
@@ -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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
- - Ran Nozik
7
+ - Team Helios
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-23 00:00:00.000000000 Z
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: