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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b54e0598f6b64e25edbb03123cb78f14186f031
4
- data.tar.gz: 9cf97034d5ac1c52a55c977fff6e38ca650d1bf6
3
+ metadata.gz: 57e7da6d4f794a19a0bedf78e2f99ed3e56b296f
4
+ data.tar.gz: b5dd2acc3f549e63c028613c09b3399e2fa9ff06
5
5
  SHA512:
6
- metadata.gz: abd72021c5171312e1fd58311ca03d4ca8f70301b3d57794d2b99bfa5ea89771d774a69d8dff000406442f52638cd75630188393716fda9556dbdceae54d5f35
7
- data.tar.gz: b86822180eb6774e8f8677eabbed836d44db6307e592f4b145b01514a715c741e8815815145e148b0517a3b262cdcb9cd056a72b4dd942d91096c040c467824e
6
+ metadata.gz: a68d3dfdbeada2b0eb389ac90f1fb2827a89ad74ba8bf623383f83d94a7d9d09d9200febed2993f81c2d2f5b44676c19e7ee1c2746ace8b3d4f89b0696107f93
7
+ data.tar.gz: fe1201cd501e848e966f84ea8b44a98a578e45b12f58ec4f65d3e6c802ddcad3f95a655b88bb695bec58f8b7e2d23805d3273c4788f096c2d2dcb37e5f6836c0
@@ -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
- Simply requiring the gem, as in the `init_newrelic.rb` example above, is sufficient add all of the instrumentation when the New Relic agent starts.
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
- You can disable specific portions of the instrumentation with the following configuration flags in your New Relic configuration (typically `newrelic.yml`):
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].name
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
@@ -1,5 +1,5 @@
1
1
  module Praxis
2
2
  module NewRelic
3
- VERSION = "1.1"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
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: '1.1'
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: 2015-09-28 00:00:00.000000000 Z
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.1
162
+ rubygems_version: 2.4.5
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: New Relic plugin for Praxis.