honeycomb-beeline 2.10.0 → 2.11.0

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: 590816d848fd6df0a39dce83e6261c2d3ba66934ccb12f59011b789251d42fb9
4
- data.tar.gz: 8b45a8e7738e3364d47907c2a2e5bbd05cd5c83b7a41c70e7c33524e6bc28188
3
+ metadata.gz: fb1cdd573575f99c826f6c98a20184dca3585ca9725f78373086c4b6dbac9a8a
4
+ data.tar.gz: 84d8b9c5e0d3e98a86f469245b8981c74861b92c591a1b399ebbcb786f18749e
5
5
  SHA512:
6
- metadata.gz: 36cdd5a79a28f83ad6f2ba81528c4d4610f71f40a0bcaf3436179c8f0e1ce07710bec89bb9a409fe4fc124d78682d59c89067d1ec793c17f14b6b1bd77854e55
7
- data.tar.gz: 71804df5927682587c09f078e7af2edebab99b49369735cf32312f4bea3ed9ec0a2f28cfa8b9ddf968da9ac142132e788eed85f712c4904686ab80fdbfb9aa4b
6
+ metadata.gz: 7d9700b19010094ec5c130af68cf6d07b91d493e60b560b48ec89012680d9102c82249a16e131adec06db3463cec5113dc68977bc0b8a1dccf8a1171f412674a
7
+ data.tar.gz: 25f56bc53a4debe90efb86dbc00152129fc7fe80a1e682a9d3efc33294b2d8fe87139fb87aa3e5cca0f03f76c238a41e5508208f3df0246792f841e0c265013e
data/.rubocop.yml CHANGED
@@ -13,6 +13,7 @@ Metrics/BlockLength:
13
13
  Exclude:
14
14
  - honeycomb-beeline.gemspec
15
15
  - spec/**/*.rb
16
+ - spec/**/*.rake
16
17
 
17
18
  Metrics/AbcSize:
18
19
  Max: 50
data/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
1
  # beeline-ruby changelog
2
2
 
3
+ ## 2.11.0 2022-06-01
4
+
5
+ ### Improvements
6
+
7
+ - Let Rake spans be disabled programmatically (#200) | [ajvondrak](https://github.com/ajvondrak)
8
+
3
9
  ## 2.10.0 2022-04-08
4
10
 
5
- ### Improvments
11
+ ### Improvements
6
12
 
7
13
  - Add HTTP referer to rack integration (#197) | [@bgitt](https://github.com/bgitt)
8
14
 
data/bin/console CHANGED
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
- require "honeycomb/beeline"
5
+ require_relative "../lib/honeycomb-beeline"
6
6
 
7
7
  # You can add fixtures and/or initialization code here to make experimenting
8
8
  # with your gem easier. You can also use a different console, if you like.
@@ -3,7 +3,7 @@
3
3
  module Honeycomb
4
4
  module Beeline
5
5
  NAME = "honeycomb-beeline".freeze
6
- VERSION = "2.10.0".freeze
6
+ VERSION = "2.11.0".freeze
7
7
  USER_AGENT_SUFFIX = "#{NAME}/#{VERSION}".freeze
8
8
  end
9
9
  end
@@ -22,7 +22,11 @@ module Honeycomb
22
22
  end
23
23
  end
24
24
 
25
+ attr_writer :honeycomb_client
26
+
25
27
  def honeycomb_client
28
+ return @honeycomb_client if defined?(@honeycomb_client)
29
+
26
30
  application.honeycomb_client
27
31
  end
28
32
  end
@@ -35,7 +39,9 @@ module Honeycomb
35
39
  attr_writer :honeycomb_client
36
40
 
37
41
  def honeycomb_client
38
- @honeycomb_client || Honeycomb.client
42
+ return @honeycomb_client if defined?(@honeycomb_client)
43
+
44
+ Honeycomb.client
39
45
  end
40
46
  end
41
47
  end
@@ -25,7 +25,7 @@ module Honeycomb
25
25
  extend Forwardable
26
26
  attr_reader :client
27
27
 
28
- def_delegators :@client, :libhoney, :start_span, :add_field,
28
+ def_delegators :client, :libhoney, :start_span, :add_field,
29
29
  :add_field_to_trace, :current_span, :current_trace,
30
30
  :with_field, :with_trace_field
31
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeycomb-beeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Holman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libhoney