You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ Next Release
8
8
*[#1047](https://github.com/ruby-grape/grape/pull/1047): Adds `given` to DSL::Parameters, allowing for dependent params - [@rnubel](https://github.com/rnubel).
9
9
*[#1064](https://github.com/ruby-grape/grape/pull/1064): Add public `Grape::Exception::ValidationErrors#full_messages` - [@romanlehnert](https://github.com/romanlehnert).
10
10
*[#1079](https://github.com/ruby-grape/grape/pull/1079): Added `stream` method to take advantage of `Rack::Chunked`[@zbelzer](https://github.com/zbelzer).
-[Active Support Instrumentation](#active-support-instrumentation)
83
+
-[Monitoring Products](#monitoring-products)
82
84
-[Contributing to Grape](#contributing-to-grape)
83
85
-[Hacking on Grape](#hacking-on-grape)
84
86
-[License](#license)
@@ -2628,6 +2630,34 @@ See [StackOverflow #3282655](http://stackoverflow.com/questions/3282655/ruby-on-
2628
2630
2629
2631
## Performance Monitoring
2630
2632
2633
+
### Active Support Instrumentation
2634
+
2635
+
Grape has built-in support for [ActiveSupport::Notifications](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html) which provides simple hook points to instrument key parts of your application.
2636
+
2637
+
The following are currently supported:
2638
+
2639
+
#### endpoint_run.grape
2640
+
2641
+
The main execution of an endpoint, includes filters and rendering.
2642
+
2643
+
**endpoint* - The endpoint instance
2644
+
2645
+
#### endpoint_render.grape
2646
+
2647
+
The execution of the main content block of the endpoint.
2648
+
2649
+
**endpoint* - The endpoint instance
2650
+
2651
+
#### endpoint_run_filters.grape
2652
+
2653
+
**endpoint* - The endpoint instance
2654
+
**filters* - The filters being executed
2655
+
**type* - The type of filters (before, before_validation, after_validation, after)
2656
+
2657
+
See the [ActiveSupport::Notifications documentation](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html] for information on how to subscribe to these events.
2658
+
2659
+
### Monitoring Products
2660
+
2631
2661
Grape integrates with NewRelic via the
2632
2662
[newrelic-grape](https://github.com/flyerhzm/newrelic-grape) gem, and
2633
2663
with Librato Metrics with the [grape-librato](https://github.com/seanmoon/grape-librato) gem.
0 commit comments