highlight_io 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3efa0af1bc68bbe32f441a34004f6c8091c45ac39cdb29eab0c8e998ec81b83
4
- data.tar.gz: c7a0b835e16dc117987dd5907aa296ce43b8d63712f78a0c10eeb187aff719ca
3
+ metadata.gz: 3ad24593b8967d78ebfde045dfa62cc8cec035d749d0a8ac6519235ba93dca48
4
+ data.tar.gz: 99812349e8cf1768432f03eeee493c44897a257e71a19295845f1607ed29e128
5
5
  SHA512:
6
- metadata.gz: c252eedb2907918abb3baa9101ddde61a76ca73ccdc95a0c7fb9dfb58b6c097ca599f23b6ef2130b888456fb6227db7e38284efd1a5a91ef1a54edf14c0c0f1f
7
- data.tar.gz: 756d3dd965066c45329269fcaf185bb2dc80f3df90bbc35f90175ba3ebee227811d29550c5f03507728446422ecd9c3b1d6c09814fef0eb618506ae6b1f22b04
6
+ metadata.gz: b95ccd4ac96b1e247b83471cfbcfe72b94404ad96150998503f3062aaa7decdfe2af702912e22fce9addaf864d48bf9a355e3bc7899fb77e80d764a7febee4a5
7
+ data.tar.gz: bfc55d53ba492eab3b5298f6629ff2c5a5f6ddd79de3954f57454c20ae1e8cd05593284ec40b65674fc01183919fe4d4fa5daf86e00ec688bb4181b2dea444f8
data/.rubocop.yml CHANGED
@@ -35,6 +35,9 @@ Style/InlineComment:
35
35
  Style/MissingElse:
36
36
  Enabled: false
37
37
 
38
+ Style/OpenStructUse:
39
+ Enabled: false
40
+
38
41
  Style/StringHashKeys:
39
42
  Enabled: false
40
43
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.5.1
2
+
3
+ - Fix bug with SDK controller instrumentation
4
+ - Fix `Highlight::VERSION` error
5
+
1
6
  ## 0.5.0
2
7
 
3
8
  - Fix bug with SDK initialization
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- highlight_io (0.5.0)
4
+ highlight_io (0.5.1)
5
5
  grpc (~> 1.66)
6
6
  opentelemetry-exporter-otlp (~> 0.28.1)
7
7
  opentelemetry-instrumentation-all (~> 0.62.1)
@@ -14,7 +14,7 @@ GEM
14
14
  ast (2.4.2)
15
15
  google-protobuf (3.25.4-arm64-darwin)
16
16
  google-protobuf (3.25.4-x86_64-linux)
17
- googleapis-common-protos-types (1.15.0)
17
+ googleapis-common-protos-types (1.16.0)
18
18
  google-protobuf (>= 3.18, < 5.a)
19
19
  grpc (1.66.0-arm64-darwin)
20
20
  google-protobuf (>= 3.25, < 5.0)
@@ -1,3 +1,3 @@
1
1
  module Highlight
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
data/lib/highlight.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'date'
2
+ require 'highlight/version'
2
3
  require 'json'
3
4
  require 'logger'
4
5
  require 'opentelemetry/exporter/otlp'
@@ -256,6 +257,8 @@ module Highlight
256
257
  end
257
258
 
258
259
  def with_highlight_context(&block)
260
+ return yield unless H.initialized?
261
+
259
262
  set_highlight_headers
260
263
  H.instance.trace(
261
264
  highlight_headers.session_id,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highlight_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Highlight
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc