honeycomb-beeline 2.7.1 → 2.8.0
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/.github/dependabot.yml +1 -1
- data/.github/workflows/apply-labels.yml +1 -1
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +11 -0
- data/lib/honeycomb/beeline/version.rb +1 -1
- data/lib/honeycomb/configuration.rb +2 -2
- data/lib/honeycomb/propagation/default.rb +27 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa203ac2df453da5a0e29891b24e4a29e354fb903f7cd5dcc9ad628412675955
|
|
4
|
+
data.tar.gz: 36d850c39cd38114abc078ac433afd8e1ec7f3e7bc6f6b2d58500e6c75cb09a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0820b6a9fc82ab51d583184eb34a4abdfff98f61d8d1c2807c3dffe884c3cc815499c718f90920c79e92e20d6166b990a39c47bb4e0eb17ff4da161e4f802f38'
|
|
7
|
+
data.tar.gz: 8a17134f59e43879990446dc9ec53a07fdf49567c77b04c2339586eb35c472924e6d36743ee2515adfaffd88db05835f28a5f1cdf7b2776bbdd2fc169ba660cb
|
data/.github/dependabot.yml
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# beeline-ruby changelog
|
|
2
2
|
|
|
3
|
+
## 2.8.0 2021-12-22
|
|
4
|
+
|
|
5
|
+
### Improvements
|
|
6
|
+
|
|
7
|
+
- feat: accept both w3c and honeycomb propagation headers by default (#183) | [@robbkidd](https://github.com/robbkidd)
|
|
8
|
+
|
|
9
|
+
### Maintenance
|
|
10
|
+
|
|
11
|
+
- Update dependabot to monthly (#181) | [@vreynolds](https://github.com/vreynolds)
|
|
12
|
+
- empower apply-labels action to apply labels (#179) | [@robbkidd](https://github.com/robbkidd)
|
|
13
|
+
|
|
3
14
|
## 2.7.1 2021-10-22
|
|
4
15
|
|
|
5
16
|
### Maintenance
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "socket"
|
|
4
|
-
require "honeycomb/propagation/
|
|
4
|
+
require "honeycomb/propagation/default"
|
|
5
5
|
|
|
6
6
|
module Honeycomb
|
|
7
7
|
# Used to configure the Honeycomb client
|
|
@@ -75,7 +75,7 @@ module Honeycomb
|
|
|
75
75
|
@http_trace_parser_hook
|
|
76
76
|
else
|
|
77
77
|
# by default we try to parse incoming honeycomb traces
|
|
78
|
-
|
|
78
|
+
DefaultPropagation::UnmarshalTraceContext.method(:parse_rack_env)
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "honeycomb/propagation/honeycomb"
|
|
4
|
+
require "honeycomb/propagation/w3c"
|
|
5
|
+
|
|
6
|
+
module Honeycomb
|
|
7
|
+
# Default behavior for handling trace propagation
|
|
8
|
+
module DefaultPropagation
|
|
9
|
+
# Parse incoming trace headers.
|
|
10
|
+
#
|
|
11
|
+
# Checks for and parses Honeycomb's trace header or, if not found,
|
|
12
|
+
# then checks for and parses W3C trace parent header.
|
|
13
|
+
module UnmarshalTraceContext
|
|
14
|
+
def parse_rack_env(env)
|
|
15
|
+
if env["HTTP_X_HONEYCOMB_TRACE"]
|
|
16
|
+
HoneycombPropagation::UnmarshalTraceContext.parse_rack_env env
|
|
17
|
+
elsif env["HTTP_TRACEPARENT"]
|
|
18
|
+
W3CPropagation::UnmarshalTraceContext.parse_rack_env env
|
|
19
|
+
else
|
|
20
|
+
[nil, nil, nil, nil]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
module_function :parse_rack_env
|
|
24
|
+
public :parse_rack_env
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
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.
|
|
4
|
+
version: 2.8.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: 2021-
|
|
11
|
+
date: 2021-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: libhoney
|
|
@@ -292,6 +292,7 @@ files:
|
|
|
292
292
|
- lib/honeycomb/propagation.rb
|
|
293
293
|
- lib/honeycomb/propagation/aws.rb
|
|
294
294
|
- lib/honeycomb/propagation/context.rb
|
|
295
|
+
- lib/honeycomb/propagation/default.rb
|
|
295
296
|
- lib/honeycomb/propagation/honeycomb.rb
|
|
296
297
|
- lib/honeycomb/propagation/w3c.rb
|
|
297
298
|
- lib/honeycomb/rollup_fields.rb
|