bc-lightstep-ruby 1.5.0 → 1.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: '08af660ec2183d4ec8eaff0050ce5d6476a7147b108d4ca69dfcec92f68c99e3'
4
- data.tar.gz: d6ccbfa3aece6cc5b339ff0e45e05e078d822ec4f42e5d4894fee48ce66f0129
3
+ metadata.gz: 58c01708c8b34494f5d5f4ddc5a5cb8b6b581b9b1dd3f9f7297ea1e4e9abb1c2
4
+ data.tar.gz: c19459c44193e5693691ce9c005c64cca1d8df2c2076147913d856fcf7fe17d5
5
5
  SHA512:
6
- metadata.gz: 4e4232a04e274587f4c04f4544b6926e039ec8b1619bc0cb82405fdf46764f3da8433340aac51afba064426342a7bb64f5c1be271f6758a262a6afd72e5cd305
7
- data.tar.gz: c4a7bc4b47f07343ba1cc2131ea508c1bcd43b4b24c45e410700d51f4485a5334e1051d885ba2d64027b45f777299b201116eb8206eb31809121c6be533aed18
6
+ metadata.gz: 0e7699221456ddab9993f18d304275df2e11331bba58f9fe09f98794d1747e39fc65bba412d253cc379788969961babd433facfad7646da3c86956290c3b677f
7
+ data.tar.gz: 9a7507f2afd324b38ffed8c62a2fc71cff6cc12a8d5a56bcb880c2f0e478840a995c22fd095aca39979f1aa0b153e24ebaba7d6ce7448b29c4e593fa164d98a6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@ Changelog for the bc-lightstep-ruby gem.
2
2
 
3
3
  h3. Pending Release
4
4
 
5
+ h3. 1.5.1
6
+
7
+ - Add `hostname` preset for env var injection into spans
8
+
5
9
  h3. 1.5.0
6
10
 
7
11
  - Add interceptors that allow for global injection of tags into spans
@@ -31,6 +31,10 @@ module Bigcommerce
31
31
  'provider.datacenter': 'NOMAD_DC'
32
32
  }.freeze
33
33
 
34
+ PRESET_HOSTNAME = {
35
+ 'hostname': 'HOSTNAME',
36
+ }.freeze
37
+
34
38
  ##
35
39
  # @param [Hash] keys A hash of span->env key mappings
36
40
  # @param [ENV] env The ENV class to get variables from
@@ -63,6 +67,8 @@ module Bigcommerce
63
67
  def augment_keys_with_presets!
64
68
  @presets.each do |preset|
65
69
  case preset
70
+ when :hostname
71
+ @keys.merge!(PRESET_HOSTNAME)
66
72
  when :nomad
67
73
  @keys.merge!(PRESET_NOMAD)
68
74
  end
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Bigcommerce
19
19
  module Lightstep
20
- VERSION = '1.5.0'
20
+ VERSION = '1.5.1'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bc-lightstep-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-14 00:00:00.000000000 Z
11
+ date: 2019-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler