Skip to content

Commit

Permalink
chore(extension-metrics): improve comments for the interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Oct 17, 2019
1 parent 8132c72 commit a7f9ad0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/metrics/src/interceptors/metrics.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import {
import {Counter, Gauge, Histogram, Summary} from 'prom-client';

/**
* This interceptor captures metrics for method invocations. Please note that
* metrics can be collected by other places, such as sequence of actions.
* This interceptor captures metrics for method invocations,
* excluding sequence actions and middleware executed before
* a method is invoked. Please collect metrics at other places
* if you want to cover more than just method invocations.
*/
@bind(asGlobalInterceptor('metrics'), {scope: BindingScope.SINGLETON})
export class MetricsInterceptor implements Provider<Interceptor> {
Expand Down

0 comments on commit a7f9ad0

Please sign in to comment.