honeycomb-beeline 2.11.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +19 -42
- data/.circleci/setup-rubygems.sh +1 -1
- data/.github/CODEOWNERS +1 -1
- data/.github/dependabot.yml +3 -0
- data/.github/release.yml +23 -0
- data/.github/workflows/add-to-project-v2.yml +15 -0
- data/.github/workflows/validate-pr-title.yml +64 -0
- data/.rubocop.yml +1 -1
- data/Appraisals +11 -12
- data/CHANGELOG.md +28 -0
- data/README.md +3 -1
- data/honeycomb-beeline.gemspec +6 -6
- data/lib/honeycomb/beeline/version.rb +3 -3
- data/lib/honeycomb/deterministic_sampler.rb +1 -1
- data/lib/honeycomb/integrations/aws.rb +1 -1
- data/lib/honeycomb/integrations/rack.rb +1 -1
- data/lib/honeycomb/integrations/redis.rb +1 -1
- data/lib/honeycomb/propagation/aws.rb +4 -8
- data/lib/honeycomb/propagation/honeycomb.rb +3 -5
- data/lib/honeycomb/propagation/honeycomb_modern.rb +3 -5
- data/lib/honeycomb/propagation/w3c.rb +3 -3
- data/lib/honeycomb/span.rb +2 -2
- data/lib/honeycomb-beeline.rb +2 -4
- metadata +23 -16
- data/.github/workflows/add-to-project.yml +0 -14
- data/.github/workflows/re-triage.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c117f411dfa05f94d94ae9d313afdc11e1f6c99395b64c4ba6cd5b064e0f5495
|
4
|
+
data.tar.gz: 1379c608d00c04e6ab065f68710c77ce298f081336dbf0291585523343ef0ef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f018311206155ca7155cc737a04e8f72bfea03447647ae7688e834a99dc41a93d8045014e7cba6c1c337779feff9f07ad40301a82eccfe3c677e5868747701ac
|
7
|
+
data.tar.gz: c653b95ca53f6aef8abbdc056d32cd51bf663b0e4960ae8d1d111b60f5f55adf63bd6e9ffbdb79bd8ead78dc399509006851c0f23df2263f550bfbb229b32a7d
|
data/.circleci/config.yml
CHANGED
@@ -30,7 +30,7 @@ commands:
|
|
30
30
|
jobs:
|
31
31
|
build_artifacts:
|
32
32
|
docker:
|
33
|
-
- image:
|
33
|
+
- image: cimg/ruby:2.7
|
34
34
|
steps:
|
35
35
|
- checkout
|
36
36
|
- run: mkdir -p ~/artifacts
|
@@ -45,7 +45,7 @@ jobs:
|
|
45
45
|
|
46
46
|
publish_rubygems:
|
47
47
|
docker:
|
48
|
-
- image:
|
48
|
+
- image: cimg/ruby:2.7
|
49
49
|
steps:
|
50
50
|
- attach_workspace:
|
51
51
|
at: ~/
|
@@ -79,9 +79,9 @@ jobs:
|
|
79
79
|
parameters:
|
80
80
|
ruby-version:
|
81
81
|
type: string
|
82
|
-
default: "2.
|
82
|
+
default: "2.7"
|
83
83
|
docker:
|
84
|
-
- image:
|
84
|
+
- image: cimg/ruby:<< parameters.ruby-version >>
|
85
85
|
environment:
|
86
86
|
BUNDLE_GEMFILE: ./Gemfile
|
87
87
|
steps:
|
@@ -96,7 +96,7 @@ jobs:
|
|
96
96
|
ruby-version:
|
97
97
|
type: string
|
98
98
|
docker:
|
99
|
-
- image:
|
99
|
+
- image: cimg/ruby:<< parameters.ruby-version >>
|
100
100
|
environment:
|
101
101
|
BUNDLE_GEMFILE: gemfiles/<< parameters.gemfile >>.gemfile
|
102
102
|
steps:
|
@@ -114,9 +114,9 @@ jobs:
|
|
114
114
|
parameters:
|
115
115
|
ruby-version:
|
116
116
|
type: string
|
117
|
-
default: "2.
|
117
|
+
default: "2.7"
|
118
118
|
docker:
|
119
|
-
- image:
|
119
|
+
- image: cimg/ruby:<< parameters.ruby-version >>
|
120
120
|
environment:
|
121
121
|
BUNDLE_GEMFILE: ./Gemfile
|
122
122
|
steps:
|
@@ -148,7 +148,7 @@ workflows:
|
|
148
148
|
- lint
|
149
149
|
matrix:
|
150
150
|
parameters:
|
151
|
-
ruby-version: ["2.
|
151
|
+
ruby-version: ["2.5","2.6", "2.7", "3.0", "3.1"]
|
152
152
|
gemfile:
|
153
153
|
- aws_2
|
154
154
|
- aws_3
|
@@ -157,9 +157,8 @@ workflows:
|
|
157
157
|
- sequel4
|
158
158
|
- sequel5
|
159
159
|
- sinatra
|
160
|
-
-
|
161
|
-
-
|
162
|
-
- rails_42
|
160
|
+
- rack_2
|
161
|
+
- rack_3
|
163
162
|
- rails_5
|
164
163
|
- rails_51
|
165
164
|
- rails_52
|
@@ -168,36 +167,6 @@ workflows:
|
|
168
167
|
- redis_3
|
169
168
|
- redis_4
|
170
169
|
exclude:
|
171
|
-
- ruby-version: "2.2"
|
172
|
-
gemfile: faraday_1
|
173
|
-
- ruby-version: "2.2"
|
174
|
-
gemfile: rails_52
|
175
|
-
- ruby-version: "2.2"
|
176
|
-
gemfile: rails_6
|
177
|
-
- ruby-version: "2.3"
|
178
|
-
gemfile: rails_6
|
179
|
-
- ruby-version: "2.4"
|
180
|
-
gemfile: rails_6
|
181
|
-
- ruby-version: "2.2"
|
182
|
-
gemfile: rails_61
|
183
|
-
- ruby-version: "2.3"
|
184
|
-
gemfile: rails_61
|
185
|
-
- ruby-version: "2.4"
|
186
|
-
gemfile: rails_61
|
187
|
-
- ruby-version: "2.4"
|
188
|
-
gemfile: rails_41
|
189
|
-
- ruby-version: "2.5"
|
190
|
-
gemfile: rails_41
|
191
|
-
- ruby-version: "2.6"
|
192
|
-
gemfile: rails_41
|
193
|
-
- ruby-version: "2.7"
|
194
|
-
gemfile: rails_41
|
195
|
-
- ruby-version: "2.7"
|
196
|
-
gemfile: rails_42
|
197
|
-
- ruby-version: "3.0"
|
198
|
-
gemfile: rails_41
|
199
|
-
- ruby-version: "3.0"
|
200
|
-
gemfile: rails_42
|
201
170
|
- ruby-version: "3.0"
|
202
171
|
gemfile: rails_5
|
203
172
|
- ruby-version: "3.0"
|
@@ -206,6 +175,14 @@ workflows:
|
|
206
175
|
gemfile: rails_52
|
207
176
|
- ruby-version: "3.0"
|
208
177
|
gemfile: sequel4
|
178
|
+
- ruby-version: "3.1"
|
179
|
+
gemfile: rails_5
|
180
|
+
- ruby-version: "3.1"
|
181
|
+
gemfile: rails_51
|
182
|
+
- ruby-version: "3.1"
|
183
|
+
gemfile: rails_52
|
184
|
+
- ruby-version: "3.1"
|
185
|
+
gemfile: sequel4
|
209
186
|
|
210
187
|
beeline:
|
211
188
|
jobs:
|
@@ -233,6 +210,6 @@ workflows:
|
|
233
210
|
filters: *tag_filters
|
234
211
|
requires:
|
235
212
|
- build_artifacts
|
213
|
+
context: Honeycomb Secrets for Public Repos
|
236
214
|
- publish_github:
|
237
215
|
<<: *publish
|
238
|
-
context: Honeycomb Secrets for Public Repos
|
data/.circleci/setup-rubygems.sh
CHANGED
data/.github/CODEOWNERS
CHANGED
data/.github/dependabot.yml
CHANGED
data/.github/release.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# .github/release.yml
|
2
|
+
|
3
|
+
changelog:
|
4
|
+
exclude:
|
5
|
+
labels:
|
6
|
+
- no-changelog
|
7
|
+
categories:
|
8
|
+
- title: 💥 Breaking Changes 💥
|
9
|
+
labels:
|
10
|
+
- "version: bump major"
|
11
|
+
- breaking-change
|
12
|
+
- title: 💡 Enhancements
|
13
|
+
labels:
|
14
|
+
- "type: enhancement"
|
15
|
+
- title: 🐛 Fixes
|
16
|
+
labels:
|
17
|
+
- "type: bug"
|
18
|
+
- title: 🛠 Maintenance
|
19
|
+
labels:
|
20
|
+
- "type: maintenance"
|
21
|
+
- title: 🤷 Other Changes
|
22
|
+
labels:
|
23
|
+
- "*"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: Add to project
|
2
|
+
on:
|
3
|
+
issues:
|
4
|
+
types: [opened]
|
5
|
+
pull_request_target:
|
6
|
+
types: [opened]
|
7
|
+
jobs:
|
8
|
+
add-to-project:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
name: Add issues and PRs to project
|
11
|
+
steps:
|
12
|
+
- uses: actions/add-to-project@main
|
13
|
+
with:
|
14
|
+
project-url: https://github.com/orgs/honeycombio/projects/11
|
15
|
+
github-token: ${{ secrets.GHPROJECTS_TOKEN }}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
name: "Validate PR Title"
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
types:
|
6
|
+
- opened
|
7
|
+
- edited
|
8
|
+
- synchronize
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
main:
|
12
|
+
name: Validate PR title
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
steps:
|
15
|
+
- uses: amannn/action-semantic-pull-request@v5
|
16
|
+
id: lint_pr_title
|
17
|
+
name: "🤖 Check PR title follows conventional commit spec"
|
18
|
+
env:
|
19
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
20
|
+
with:
|
21
|
+
# Have to specify all types because `maint` and `rel` aren't defaults
|
22
|
+
types: |
|
23
|
+
maint
|
24
|
+
rel
|
25
|
+
fix
|
26
|
+
feat
|
27
|
+
chore
|
28
|
+
ci
|
29
|
+
docs
|
30
|
+
style
|
31
|
+
refactor
|
32
|
+
perf
|
33
|
+
test
|
34
|
+
ignoreLabels: |
|
35
|
+
"type: dependencies"
|
36
|
+
# When the previous steps fails, the workflow would stop. By adding this
|
37
|
+
# condition you can continue the execution with the populated error message.
|
38
|
+
- if: always() && (steps.lint_pr_title.outputs.error_message != null)
|
39
|
+
name: "📝 Add PR comment about using conventional commit spec"
|
40
|
+
uses: marocchino/sticky-pull-request-comment@v2
|
41
|
+
with:
|
42
|
+
header: pr-title-lint-error
|
43
|
+
message: |
|
44
|
+
Thank you for contributing to the project! 🎉
|
45
|
+
|
46
|
+
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
|
47
|
+
|
48
|
+
Make sure to prepend with `feat:`, `fix:`, or another option in the list below.
|
49
|
+
|
50
|
+
Once you update the title, this workflow will re-run automatically and validate the updated title.
|
51
|
+
|
52
|
+
Details:
|
53
|
+
|
54
|
+
```
|
55
|
+
${{ steps.lint_pr_title.outputs.error_message }}
|
56
|
+
```
|
57
|
+
|
58
|
+
# Delete a previous comment when the issue has been resolved
|
59
|
+
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
|
60
|
+
name: "❌ Delete PR comment after title has been updated"
|
61
|
+
uses: marocchino/sticky-pull-request-comment@v2
|
62
|
+
with:
|
63
|
+
header: pr-title-lint-error
|
64
|
+
delete: true
|
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
@@ -31,23 +31,16 @@ appraise "sinatra" do
|
|
31
31
|
gem "warden"
|
32
32
|
end
|
33
33
|
|
34
|
-
appraise "rack" do
|
35
|
-
gem "rack"
|
34
|
+
appraise "rack-2" do
|
35
|
+
gem "rack", "~>2.0"
|
36
36
|
gem "rack-test"
|
37
37
|
gem "warden"
|
38
38
|
end
|
39
39
|
|
40
|
-
appraise "
|
40
|
+
appraise "rack-3" do
|
41
|
+
gem "rack", "~>3.0"
|
42
|
+
gem "rack-session"
|
41
43
|
gem "rack-test"
|
42
|
-
gem "rails", "~> 4.1.0"
|
43
|
-
gem "sprockets", "~> 3"
|
44
|
-
gem "warden"
|
45
|
-
end
|
46
|
-
|
47
|
-
appraise "rails-42" do
|
48
|
-
gem "rack-test"
|
49
|
-
gem "rails", "~> 4.2.0"
|
50
|
-
gem "sprockets", "~> 3"
|
51
44
|
gem "warden"
|
52
45
|
end
|
53
46
|
|
@@ -78,6 +71,12 @@ appraise "rails-6" do
|
|
78
71
|
gem "warden"
|
79
72
|
end
|
80
73
|
|
74
|
+
appraise "rails-61" do
|
75
|
+
gem "rack-test"
|
76
|
+
gem "rails", "~> 6.1.0"
|
77
|
+
gem "warden"
|
78
|
+
end
|
79
|
+
|
81
80
|
appraise "redis-3" do
|
82
81
|
gem "redis", "~> 3"
|
83
82
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# beeline-ruby changelog
|
2
2
|
|
3
|
+
## 3.0.0 2023-06-08
|
4
|
+
|
5
|
+
### ⚠️ Breaking Changes ⚠️
|
6
|
+
|
7
|
+
Minimum Ruby version is 2.5 and minimum Rails version is 5.0.
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- fix: set min rubocop to avoid false positive lint error (#218) | @robbkidd
|
12
|
+
|
13
|
+
### Maintenance
|
14
|
+
|
15
|
+
- chore: give dependabot PRs better title (#217) | @vreynolds
|
16
|
+
- ci: use context for publishing ruby gem (#219) | @JamieDanielson
|
17
|
+
- ci: update validate PR title workflow (#216) | @pkanal
|
18
|
+
- ci: validate PR title (#214) | @pkanal
|
19
|
+
- docs: update readme (#225) | @pkanal
|
20
|
+
- docs: add otel recommendation to readme (#222) | @pkanal
|
21
|
+
- maint: drop support for Ruby < 2.5 and Rails < 5.0 (#227) | @robbkidd
|
22
|
+
- maint: update author to honeycomb (#220) | @JamieDanielson
|
23
|
+
- maint: delete workflows for old board (#212) | @vreynolds
|
24
|
+
- maint: add release file (#211) | @vreynolds
|
25
|
+
- maint: add new project workflow (#210) | @vreynolds
|
26
|
+
- maint: handle recent Rack v3 changes in tests & example (#209) | @emilyashley
|
27
|
+
- maint: add ruby 3.1 to CI matrix (#206) | @vreynolds
|
28
|
+
- maint: fix nightly build (#205) | @vreynolds
|
29
|
+
- maint: drop testing for Faraday 0 under Ruby 2.2 (#204) | @robbkidd
|
30
|
+
|
3
31
|
## 2.11.0 2022-06-01
|
4
32
|
|
5
33
|
### Improvements
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
[![Build Status](https://circleci.com/gh/honeycombio/beeline-ruby.svg?style=svg)](https://circleci.com/gh/honeycombio/beeline-ruby)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/honeycomb-beeline.svg)](https://badge.fury.io/rb/honeycomb-beeline)
|
6
6
|
|
7
|
+
⚠️**Note**: Beelines are Honeycomb's legacy instrumentation libraries. We embrace OpenTelemetry as the effective way to instrument applications. For any new observability efforts, we recommend [instrumenting with OpenTelemetry](https://docs.honeycomb.io/getting-data-in/opentelemetry/ruby/).
|
8
|
+
|
7
9
|
This package makes it easy to instrument your Ruby web app to send useful events to [Honeycomb](https://www.honeycomb.io), a service for debugging your software in production.
|
8
10
|
- [Usage and Examples](https://docs.honeycomb.io/getting-data-in/beelines/ruby-beeline/)
|
9
11
|
|
@@ -12,7 +14,7 @@ trial](https://ui.honeycomb.io/signup) to obtain an API key before starting.
|
|
12
14
|
|
13
15
|
## Compatible with
|
14
16
|
|
15
|
-
Requires Ruby version 2.
|
17
|
+
Requires Ruby version 2.5 or later
|
16
18
|
|
17
19
|
Built in instrumentation for:
|
18
20
|
|
data/honeycomb-beeline.gemspec
CHANGED
@@ -7,15 +7,15 @@ require "honeycomb/beeline/version"
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = Honeycomb::Beeline::NAME
|
9
9
|
spec.version = Honeycomb::Beeline::VERSION
|
10
|
-
spec.authors = ["
|
11
|
-
spec.email = ["
|
10
|
+
spec.authors = ["The Honeycomb.io Team"]
|
11
|
+
spec.email = ["support@honeycomb.io"]
|
12
12
|
|
13
13
|
spec.summary = "Instrument your Ruby apps with Honeycomb"
|
14
14
|
spec.homepage = "https://honeycomb.io"
|
15
15
|
|
16
16
|
spec.license = "Apache-2.0"
|
17
17
|
|
18
|
-
spec.required_ruby_version = ">= 2.
|
18
|
+
spec.required_ruby_version = ">= 2.5.0"
|
19
19
|
|
20
20
|
if spec.respond_to?(:metadata)
|
21
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
@@ -43,12 +43,12 @@ Gem::Specification.new do |spec|
|
|
43
43
|
spec.add_development_dependency "bump"
|
44
44
|
spec.add_development_dependency "bundler"
|
45
45
|
spec.add_development_dependency "overcommit", "~> 0.46.0"
|
46
|
-
spec.add_development_dependency "pry"
|
47
|
-
spec.add_development_dependency "pry-byebug"
|
46
|
+
spec.add_development_dependency "pry"
|
47
|
+
spec.add_development_dependency "pry-byebug"
|
48
48
|
spec.add_development_dependency "rake"
|
49
49
|
spec.add_development_dependency "rspec", "~> 3.0"
|
50
50
|
spec.add_development_dependency "rspec_junit_formatter", ">= 0.5.1"
|
51
|
-
spec.add_development_dependency "rubocop", "< 0.69"
|
51
|
+
spec.add_development_dependency "rubocop", [">= 0.60.0", "< 0.69"]
|
52
52
|
spec.add_development_dependency "rubocop-performance", "< 1.3.0"
|
53
53
|
spec.add_development_dependency "simplecov"
|
54
54
|
spec.add_development_dependency "simplecov-console"
|
@@ -199,7 +199,7 @@ module Honeycomb
|
|
199
199
|
pretty.encode!("UTF-8", "binary", fallback: ->(c) { hex(c) })
|
200
200
|
pretty.gsub!(NEEDS_BACKSLASH, BACKSLASH)
|
201
201
|
pretty.gsub!(NEEDS_HEX) { |c| hex(c) }
|
202
|
-
pretty
|
202
|
+
NEEDS_QUOTES.match?(pretty) ? "\"#{pretty}\"" : pretty
|
203
203
|
end
|
204
204
|
|
205
205
|
# A regular expression matching characters that need to be hex-encoded.
|
@@ -52,10 +52,8 @@ module Honeycomb
|
|
52
52
|
module MarshalTraceContext
|
53
53
|
def to_trace_header
|
54
54
|
context = [""]
|
55
|
-
|
56
|
-
trace.fields
|
57
|
-
context.push("#{key}=#{trace.fields[key]}")
|
58
|
-
end
|
55
|
+
trace.fields.keys&.each do |key|
|
56
|
+
context.push("#{key}=#{trace.fields[key]}")
|
59
57
|
end
|
60
58
|
|
61
59
|
data_to_propagate = [
|
@@ -68,10 +66,8 @@ module Honeycomb
|
|
68
66
|
def self.to_trace_header(propagation_context)
|
69
67
|
context = [""]
|
70
68
|
fields = propagation_context.trace_fields
|
71
|
-
|
72
|
-
|
73
|
-
context.push("#{key}=#{fields[key]}")
|
74
|
-
end
|
69
|
+
fields.keys&.each do |key|
|
70
|
+
context.push("#{key}=#{fields[key]}")
|
75
71
|
end
|
76
72
|
|
77
73
|
data_to_propagate = [
|
@@ -42,11 +42,9 @@ module Honeycomb
|
|
42
42
|
parent_span_id = value
|
43
43
|
when "context"
|
44
44
|
Base64.decode64(value).tap do |json|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
trace_fields = {}
|
49
|
-
end
|
45
|
+
trace_fields = JSON.parse json
|
46
|
+
rescue JSON::ParserError
|
47
|
+
trace_fields = {}
|
50
48
|
end
|
51
49
|
end
|
52
50
|
end
|
@@ -40,11 +40,9 @@ module Honeycomb
|
|
40
40
|
parent_span_id = value
|
41
41
|
when "context"
|
42
42
|
Base64.decode64(value).tap do |json|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
trace_fields = {}
|
47
|
-
end
|
43
|
+
trace_fields = JSON.parse json
|
44
|
+
rescue JSON::ParserError
|
45
|
+
trace_fields = {}
|
48
46
|
end
|
49
47
|
end
|
50
48
|
end
|
@@ -5,8 +5,8 @@ module Honeycomb
|
|
5
5
|
module W3CPropagation
|
6
6
|
# Parse trace headers
|
7
7
|
module UnmarshalTraceContext
|
8
|
-
INVALID_TRACE_ID = "00000000000000000000000000000000"
|
9
|
-
INVALID_SPAN_ID = "0000000000000000"
|
8
|
+
INVALID_TRACE_ID = "00000000000000000000000000000000"
|
9
|
+
INVALID_SPAN_ID = "0000000000000000"
|
10
10
|
|
11
11
|
def parse_rack_env(env)
|
12
12
|
parse env["HTTP_TRACEPARENT"]
|
@@ -16,7 +16,7 @@ module Honeycomb
|
|
16
16
|
unless serialized_trace.nil?
|
17
17
|
version, payload = serialized_trace.split("-", 2)
|
18
18
|
# version should be 2 hex characters
|
19
|
-
if
|
19
|
+
if /^[A-Fa-f0-9]{2}$/.match?(version)
|
20
20
|
trace_id, parent_span_id = parse_v1(payload)
|
21
21
|
|
22
22
|
if !trace_id.nil? && !parent_span_id.nil?
|
data/lib/honeycomb/span.rb
CHANGED
@@ -149,13 +149,13 @@ module Honeycomb
|
|
149
149
|
end
|
150
150
|
|
151
151
|
if sample
|
152
|
-
presend_hook
|
152
|
+
presend_hook&.call(event.data)
|
153
153
|
event.send_presampled
|
154
154
|
end
|
155
155
|
@sent = true
|
156
156
|
context.span_sent(self)
|
157
157
|
|
158
|
-
parent
|
158
|
+
parent&.remove_child(self)
|
159
159
|
end
|
160
160
|
|
161
161
|
def add_additional_fields
|
data/lib/honeycomb-beeline.rb
CHANGED
@@ -40,10 +40,8 @@ module Honeycomb
|
|
40
40
|
|
41
41
|
def load_integrations
|
42
42
|
integrations_to_load.each do |integration|
|
43
|
-
|
44
|
-
|
45
|
-
rescue LoadError
|
46
|
-
end
|
43
|
+
require "honeycomb/integrations/#{integration}"
|
44
|
+
rescue LoadError
|
47
45
|
end
|
48
46
|
end
|
49
47
|
|
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- The Honeycomb.io Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libhoney
|
@@ -84,30 +84,30 @@ dependencies:
|
|
84
84
|
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry-byebug
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,6 +154,9 @@ dependencies:
|
|
154
154
|
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.60.0
|
157
160
|
- - "<"
|
158
161
|
- !ruby/object:Gem::Version
|
159
162
|
version: '0.69'
|
@@ -161,6 +164,9 @@ dependencies:
|
|
161
164
|
prerelease: false
|
162
165
|
version_requirements: !ruby/object:Gem::Requirement
|
163
166
|
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: 0.60.0
|
164
170
|
- - "<"
|
165
171
|
- !ruby/object:Gem::Version
|
166
172
|
version: '0.69'
|
@@ -222,7 +228,7 @@ dependencies:
|
|
222
228
|
version: '0'
|
223
229
|
description:
|
224
230
|
email:
|
225
|
-
-
|
231
|
+
- support@honeycomb.io
|
226
232
|
executables: []
|
227
233
|
extensions: []
|
228
234
|
extra_rdoc_files: []
|
@@ -238,10 +244,11 @@ files:
|
|
238
244
|
- ".github/ISSUE_TEMPLATE/security-vulnerability-report.md"
|
239
245
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
240
246
|
- ".github/dependabot.yml"
|
241
|
-
- ".github/
|
247
|
+
- ".github/release.yml"
|
248
|
+
- ".github/workflows/add-to-project-v2.yml"
|
242
249
|
- ".github/workflows/apply-labels.yml"
|
243
|
-
- ".github/workflows/re-triage.yml"
|
244
250
|
- ".github/workflows/stale.yml"
|
251
|
+
- ".github/workflows/validate-pr-title.yml"
|
245
252
|
- ".gitignore"
|
246
253
|
- ".overcommit.yml"
|
247
254
|
- ".rspec"
|
@@ -310,14 +317,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
310
317
|
requirements:
|
311
318
|
- - ">="
|
312
319
|
- !ruby/object:Gem::Version
|
313
|
-
version: 2.
|
320
|
+
version: 2.5.0
|
314
321
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
315
322
|
requirements:
|
316
323
|
- - ">="
|
317
324
|
- !ruby/object:Gem::Version
|
318
325
|
version: '0'
|
319
326
|
requirements: []
|
320
|
-
rubygems_version: 3.
|
327
|
+
rubygems_version: 3.4.10
|
321
328
|
signing_key:
|
322
329
|
specification_version: 4
|
323
330
|
summary: Instrument your Ruby apps with Honeycomb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
name: Apply project management flow
|
2
|
-
on:
|
3
|
-
issues:
|
4
|
-
types: [opened]
|
5
|
-
pull_request_target:
|
6
|
-
types: [opened]
|
7
|
-
jobs:
|
8
|
-
project-management:
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
name: Apply project management flow
|
11
|
-
steps:
|
12
|
-
- uses: honeycombio/oss-management-actions/projects@v1
|
13
|
-
with:
|
14
|
-
ghprojects-token: ${{ secrets.GHPROJECTS_TOKEN }}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
name: Re-triage issues with new comments
|
2
|
-
on:
|
3
|
-
issue_comment:
|
4
|
-
types: [created]
|
5
|
-
jobs:
|
6
|
-
re-triage:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
name: Re-triage issues with new comments
|
9
|
-
steps:
|
10
|
-
- uses: honeycombio/oss-management-actions/re-triage@v1
|
11
|
-
with:
|
12
|
-
ghprojects-token: ${{ secrets.GHPROJECTS_TOKEN }}
|