honeycomb-beeline 1.1.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{bundler_version.sh → .circleci/bundler_version.sh} +1 -2
- data/.circleci/config.yml +132 -0
- data/.circleci/setup-rubygems.sh +3 -0
- data/.rubocop.yml +2 -0
- data/Appraisals +27 -2
- data/CONTRIBUTORS.md +2 -1
- data/Gemfile.lock +45 -42
- data/README.md +3 -1
- data/honeycomb-beeline.gemspec +3 -2
- data/lib/generators/honeycomb/honeycomb_generator.rb +14 -0
- data/lib/honeycomb-beeline.rb +4 -1
- data/lib/honeycomb/beeline/version.rb +1 -1
- data/lib/honeycomb/client.rb +22 -11
- data/lib/honeycomb/configuration.rb +1 -1
- data/lib/honeycomb/integrations/active_support.rb +14 -2
- data/lib/honeycomb/integrations/aws.rb +400 -0
- data/lib/honeycomb/integrations/faraday.rb +1 -1
- data/lib/honeycomb/integrations/rack.rb +15 -4
- data/lib/honeycomb/integrations/rails.rb +67 -11
- data/lib/honeycomb/integrations/railtie.rb +2 -3
- data/lib/honeycomb/integrations/redis.rb +356 -0
- data/lib/honeycomb/integrations/warden.rb +2 -2
- metadata +34 -12
- data/.travis.yml +0 -57
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Honeycomb
|
4
|
-
# Methods for
|
4
|
+
# Methods for extracting common warden/devise fields from a rack env hash
|
5
5
|
module Warden
|
6
6
|
COMMON_USER_FIELDS = %i[
|
7
7
|
email
|
@@ -24,7 +24,7 @@ module Honeycomb
|
|
24
24
|
key.match(SCOPE_PATTERN)
|
25
25
|
end
|
26
26
|
warden_scopes = keys.map do |key|
|
27
|
-
key.gsub(SCOPE_PATTERN, "
|
27
|
+
key.gsub(SCOPE_PATTERN, "\\1")
|
28
28
|
end
|
29
29
|
best_scope = warden_scopes.include?("user") ? "user" : warden_scopes.first
|
30
30
|
|
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: 2.1.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:
|
11
|
+
date: 2020-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libhoney
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.14'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.14.2
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
29
|
+
version: '1.14'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.14.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: appraisal
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +86,34 @@ dependencies:
|
|
80
86
|
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: 0.46.0
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: pry
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "<"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 0.13.0
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.13.0
|
83
103
|
- !ruby/object:Gem::Dependency
|
84
104
|
name: pry-byebug
|
85
105
|
requirement: !ruby/object:Gem::Requirement
|
86
106
|
requirements:
|
87
|
-
- - "
|
107
|
+
- - "~>"
|
88
108
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
109
|
+
version: 3.7.0
|
90
110
|
type: :development
|
91
111
|
prerelease: false
|
92
112
|
version_requirements: !ruby/object:Gem::Requirement
|
93
113
|
requirements:
|
94
|
-
- - "
|
114
|
+
- - "~>"
|
95
115
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
116
|
+
version: 3.7.0
|
97
117
|
- !ruby/object:Gem::Dependency
|
98
118
|
name: rake
|
99
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,12 +219,14 @@ executables: []
|
|
199
219
|
extensions: []
|
200
220
|
extra_rdoc_files: []
|
201
221
|
files:
|
222
|
+
- ".circleci/bundler_version.sh"
|
223
|
+
- ".circleci/config.yml"
|
224
|
+
- ".circleci/setup-rubygems.sh"
|
202
225
|
- ".gitignore"
|
203
226
|
- ".overcommit.yml"
|
204
227
|
- ".rspec"
|
205
228
|
- ".rubocop.yml"
|
206
229
|
- ".ruby-version"
|
207
|
-
- ".travis.yml"
|
208
230
|
- Appraisals
|
209
231
|
- CODE_OF_CONDUCT.md
|
210
232
|
- CONTRIBUTORS.md
|
@@ -216,7 +238,6 @@ files:
|
|
216
238
|
- UPGRADING.md
|
217
239
|
- bin/console
|
218
240
|
- bin/setup
|
219
|
-
- bundler_version.sh
|
220
241
|
- honeycomb-beeline.gemspec
|
221
242
|
- lib/generators/honeycomb/honeycomb_generator.rb
|
222
243
|
- lib/honeycomb-beeline.rb
|
@@ -226,11 +247,13 @@ files:
|
|
226
247
|
- lib/honeycomb/context.rb
|
227
248
|
- lib/honeycomb/deterministic_sampler.rb
|
228
249
|
- lib/honeycomb/integrations/active_support.rb
|
250
|
+
- lib/honeycomb/integrations/aws.rb
|
229
251
|
- lib/honeycomb/integrations/faraday.rb
|
230
252
|
- lib/honeycomb/integrations/rack.rb
|
231
253
|
- lib/honeycomb/integrations/rails.rb
|
232
254
|
- lib/honeycomb/integrations/railtie.rb
|
233
255
|
- lib/honeycomb/integrations/rake.rb
|
256
|
+
- lib/honeycomb/integrations/redis.rb
|
234
257
|
- lib/honeycomb/integrations/sequel.rb
|
235
258
|
- lib/honeycomb/integrations/sinatra.rb
|
236
259
|
- lib/honeycomb/integrations/warden.rb
|
@@ -260,8 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
260
283
|
- !ruby/object:Gem::Version
|
261
284
|
version: '0'
|
262
285
|
requirements: []
|
263
|
-
|
264
|
-
rubygems_version: 2.7.7
|
286
|
+
rubygems_version: 3.0.3
|
265
287
|
signing_key:
|
266
288
|
specification_version: 4
|
267
289
|
summary: Instrument your Ruby apps with Honeycomb
|
data/.travis.yml
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
rvm:
|
4
|
-
- 2.3
|
5
|
-
- 2.4
|
6
|
-
- 2.5
|
7
|
-
- 2.6
|
8
|
-
gemfile:
|
9
|
-
- gemfiles/faraday.gemfile
|
10
|
-
- gemfiles/sequel4.gemfile
|
11
|
-
- gemfiles/sequel5.gemfile
|
12
|
-
- gemfiles/sinatra.gemfile
|
13
|
-
- gemfiles/rack.gemfile
|
14
|
-
- gemfiles/rails_41.gemfile
|
15
|
-
- gemfiles/rails_42.gemfile
|
16
|
-
- gemfiles/rails_5.gemfile
|
17
|
-
- gemfiles/rails_51.gemfile
|
18
|
-
- gemfiles/rails_52.gemfile
|
19
|
-
- gemfiles/rails_6.gemfile
|
20
|
-
script: bundle exec rake test
|
21
|
-
before_install:
|
22
|
-
- gem update bundler
|
23
|
-
- ./bundler_version.sh
|
24
|
-
matrix:
|
25
|
-
exclude:
|
26
|
-
- rvm: 2.4
|
27
|
-
gemfile: gemfiles/rails_41.gemfile
|
28
|
-
- rvm: 2.5
|
29
|
-
gemfile: gemfiles/rails_41.gemfile
|
30
|
-
- rvm: 2.6
|
31
|
-
gemfile: gemfiles/rails_41.gemfile
|
32
|
-
- rvm: 2.3
|
33
|
-
gemfile: gemfiles/rails_6.gemfile
|
34
|
-
- rvm: 2.4
|
35
|
-
gemfile: gemfiles/rails_6.gemfile
|
36
|
-
stages:
|
37
|
-
- lint
|
38
|
-
- test
|
39
|
-
- deploy
|
40
|
-
jobs:
|
41
|
-
include:
|
42
|
-
- stage: lint
|
43
|
-
script: bundle exec rake rubocop
|
44
|
-
rvm: 2.6
|
45
|
-
gemfile: Gemfile
|
46
|
-
- stage: deploy
|
47
|
-
script: skip
|
48
|
-
rvm: 2.6
|
49
|
-
gemfile: Gemfile
|
50
|
-
deploy:
|
51
|
-
provider: rubygems
|
52
|
-
api_key:
|
53
|
-
secure: V7GDCgz1myfe4c9EoQcGHGzLVtDaJo+/Iis6i+s5gUvKsITVmoMnTEEwuSXROGAdabyjzkTSxMEC2dOK/7Hlc9z4ryb+LxZSMcQfbACv6rOqvGG+PQ++SZULm3qhfTTHwpq41GspVPPindpcaEcVoOGZm6vhuFx9GZQivFNlUvU2TMFT3/+joMsNP0HoI2KfOKy2ACBrjhsE2ooCTON7dlZzCoGwnm9euODrNUBR7/2PnFxBkUaPlRdRMsmvVfxyAgw4eC9LpZgw9Y2dmjhMPXAnOxe3/kQpJ6Z0wN7sp495PYNHGT3DZxQyo84lZcFsgRJa0aLgpXkZGOBa5L7+ZOrNQ0l06kSsrkOCXCjX/lWvaVzncOYXbq5NOPfuQzP3XTXkBJ7816EqNePo1OwBix7SEJOI45/YvEoJfn7J07zdRFzqaq3mjTEu1B92dO8kzvfFUSkbRUkLDpTg6Ra0LjRvPkqeuErcIzzHCLg8RB6Bd88LlLdhhqiN8kRoNUfjlyViyQXy3DYNFfXLV8up+4jJe4wK+p7qtVqpD3yGH7LRKn/911puy1AtzprQ8dUqHEby29f0J6jLrd9oNTI7haWTC+pO5xY2+YfkeOMQq7QKSuWoiMRCGExd4rBGsV/JD3FRq2O2vu/0xXKL+aep7UgEUMHkXOb0EwL/nTm6Bd0=
|
54
|
-
gem: honeycomb-beeline
|
55
|
-
on:
|
56
|
-
tags: true
|
57
|
-
repo: honeycombio/beeline-ruby
|