honeycomb-rails 0.8.0 → 0.8.1
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/README.md +4 -27
- data/lib/honeycomb-rails/subscribers/active_record.rb +2 -2
- data/lib/honeycomb-rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9faa75bf47c2e024baa7de9daa83b5ae60754257beda81f092b057545449ba7d
|
4
|
+
data.tar.gz: f3bce36fc2de8fba880657849e0f6506dd98b4029fb19673b4e289a12068c8a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bce6b75182206a54ea37eeb711844541ba7d024170c5a89bc42b171f5baace2445bbcc9e845d66e9e77f63ed2764d95d8f9c1b6db14cca3e8ee7f66ba3f45e08
|
7
|
+
data.tar.gz: 8f16f37c907a5648ea40e7cb11b2686d24235c5f2f7e8cc8feafa131064b59a414e766b4f0727d648525fc776fda02c112a0d8eb9f03de1ca9c1ea3a071bbb0f
|
data/README.md
CHANGED
@@ -1,34 +1,11 @@
|
|
1
1
|
# honeycomb-rails [](https://travis-ci.org/honeycombio/honeycomb-rails) [](https://badge.fury.io/rb/honeycomb-rails)
|
2
2
|
|
3
|
-
|
3
|
+
Ruby gem for sending events from your Rails application to [Honeycomb](https://www.honeycomb.io), a service for debugging your software in production.
|
4
4
|
|
5
|
-
|
5
|
+
Requires Ruby 2.2 or greater and Rails 3 or greater.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'honeycomb-rails'
|
11
|
-
```
|
12
|
-
|
13
|
-
Then create a file in your application repo called `config/initializers/honeycomb.rb` with the following contents:
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
HoneycombRails.configure do |conf|
|
17
|
-
conf.writekey = 'your honeycomb writekey here'
|
18
|
-
conf.dataset = 'your app name'
|
19
|
-
conf.db_dataset = 'your app name-activerecord'
|
20
|
-
end
|
21
|
-
```
|
22
|
-
|
23
|
-
Now check out our [guide](https://honeycomb.io/docs/guides/rails/) to see what kind of visibility you can get from your app.
|
24
|
-
|
25
|
-
## Configuration
|
26
|
-
|
27
|
-
See [docs](http://www.rubydoc.info/gems/honeycomb-rails/HoneycombRails/Config) for available config options.
|
28
|
-
|
29
|
-
## Documentation
|
30
|
-
|
31
|
-
See [rubydoc](http://www.rubydoc.info/gems/honeycomb-rails/) for gem documentation.
|
7
|
+
- [Usage and Examples](https://docs.honeycomb.io/thinking-about-observability/getting-started-with/rails/)
|
8
|
+
- [API Reference](https://www.rubydoc.info/gems/honeycomb-rails)
|
32
9
|
|
33
10
|
## Contributions
|
34
11
|
|
@@ -23,10 +23,10 @@ module HoneycombRails
|
|
23
23
|
event = ActiveSupport::Notifications::Event.new(*args)
|
24
24
|
data = event.payload.slice(:name, :connection_id)
|
25
25
|
data[:sql] = event.payload[:sql].strip
|
26
|
-
event.payload[:binds].
|
26
|
+
event.payload[:binds].each_with_index do |b, i|
|
27
27
|
case b
|
28
28
|
when Array
|
29
|
-
data["bind_#{ b[0].name }".to_sym] = b[1]
|
29
|
+
data["bind_#{ b[0].nil? ? i : b[0].name }".to_sym] = b[1]
|
30
30
|
else
|
31
31
|
data["bind_#{ b.name }".to_sym] = b.value
|
32
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeycomb-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Stokes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: libhoney
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.
|
20
|
+
version: '1.9'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.
|
27
|
+
version: '1.9'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rails
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
requirements:
|
147
147
|
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: 2.
|
149
|
+
version: 2.2.0
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
152
|
- - ">="
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.7.
|
157
|
+
rubygems_version: 2.7.8
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Easily instrument your Rails apps with Honeycomb
|