newrelic-praxis 1.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/README.md +8 -3
- data/lib/newrelic-praxis/praxis_blueprints/render_event.rb +5 -1
- data/lib/newrelic-praxis/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57e7da6d4f794a19a0bedf78e2f99ed3e56b296f
|
4
|
+
data.tar.gz: b5dd2acc3f549e63c028613c09b3399e2fa9ff06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a68d3dfdbeada2b0eb389ac90f1fb2827a89ad74ba8bf623383f83d94a7d9d09d9200febed2993f81c2d2f5b44676c19e7ee1c2746ace8b3d4f89b0696107f93
|
7
|
+
data.tar.gz: fe1201cd501e848e966f84ea8b44a98a578e45b12f58ec4f65d3e6c802ddcad3f95a655b88bb695bec58f8b7e2d23805d3273c4788f096c2d2dcb37e5f6836c0
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## next
|
4
4
|
|
5
|
+
## 1.1.1
|
6
|
+
|
7
|
+
* `Blueprint` instrumentation's `RenderEvent` raising a `NoMethodError` when the notification's `payload[:view]` is `nil`.
|
8
|
+
|
5
9
|
## 1.1
|
6
10
|
|
7
11
|
* Ensure every transaction is named after the Ctrl+action (even if it never hits the controller action code)
|
@@ -10,4 +14,3 @@
|
|
10
14
|
|
11
15
|
* Initial release of the Gem:
|
12
16
|
* It has support for Praxis (the API framework), Praxis Blueprints and Praxis Mapper.
|
13
|
-
|
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
# Praxis New Relic Support
|
1
|
+
# Praxis New Relic Support [![Dependency Status][gemnasium-img-url]][gemnasium-url]
|
2
|
+
|
3
|
+
[gemnasium-img-url]:https://gemnasium.com/rightscale/newrelic-praxis.svg
|
4
|
+
[gemnasium-url]:https://gemnasium.com/rightscale/newrelic-praxis
|
2
5
|
|
3
6
|
New Relic instrumentation for Praxis, Praxis Blueprints, and Praxis Mapper.
|
4
7
|
|
@@ -54,9 +57,11 @@ Additionally, any database interaction outside of Praxis::Mapper (i.e. `ModelCla
|
|
54
57
|
|
55
58
|
## Configuration
|
56
59
|
|
57
|
-
|
60
|
+
It is likely that the default configuration suits most of your needs so you might not need to configure anything else than the license key.
|
61
|
+
|
62
|
+
However, if you need to tweak any settings, this gem can be configured following exactly the same methods of the underlying [newrelic_rpm](https://github.com/newrelic/rpm) gem. This includes defining a config file (typically `newrelic.yml`) with all the original supported options or passing these equivalent settings through environment variables. See [this](https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration) for more details.
|
58
63
|
|
59
|
-
|
64
|
+
In addition to those standard options, there are three more that allow you to disable specific portions of the Praxis instrumentation:
|
60
65
|
|
61
66
|
* `disable_praxis_instrumentation` -- disables the `ControllerClass#action_method` tracing. `Praxis::Application#call` and `Praxis::Router#call` are provided by New Relic as part of its Rack instrumentation.
|
62
67
|
* `disable_praxis_blueprints_instrumentation` -- disables `:ClassName/:view_name Template` tracing for Praxis::Blueprint.
|
@@ -4,7 +4,11 @@ module NewRelic::Agent::Instrumentation
|
|
4
4
|
class RenderEvent < Event
|
5
5
|
|
6
6
|
def metric_name
|
7
|
-
view_name = self.payload[:view]
|
7
|
+
view_name = if (view = self.payload[:view])
|
8
|
+
view.name
|
9
|
+
else
|
10
|
+
'fields'
|
11
|
+
end
|
8
12
|
blueprint_name = self.payload[:blueprint].class.name
|
9
13
|
|
10
14
|
# mark views rendered with list of fields
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic-praxis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep M. Blanquer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: praxis
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.4.5
|
162
|
+
rubygems_version: 2.4.5
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: New Relic plugin for Praxis.
|