diff --git a/docs/registry.md b/docs/registry.md index b1871cf8e..3a87a8e4f 100644 --- a/docs/registry.md +++ b/docs/registry.md @@ -130,6 +130,7 @@ options.routes = [{ |Event name|Callback Data Type|Description| |---------|------|-------| |`cache-poll`|`object`|Fired when the components list is refreshed. The callback data contains the last edit unix utc timestamp.| +|`component-retrieved`|`object`|Fired when the component is retrieved. This includes the component's validation, data gathering and execution, view retrieving, and (when requested) rendering. The callback data contains the duration, component details, and, in case, the error details.| |`error`|`object`|Fired when an internal operation errors.| |`request`|`object`|Fired every time the registry receives a request. The callback data contains some request and response details.| |`start`|`undefined`|Fired when the registry starts| diff --git a/registry/routes/helpers/get-component-retrieving-info.js b/registry/routes/helpers/get-component-retrieving-info.js index f96950624..14f36cec9 100644 --- a/registry/routes/helpers/get-component-retrieving-info.js +++ b/registry/routes/helpers/get-component-retrieving-info.js @@ -22,7 +22,7 @@ module.exports = function(options){ var delta = process.hrtime(start), nanosec = delta[0] * 1e9 + delta[1]; - eventData.duration = nanosec / 1e6; + eventData.duration = nanosec / 1e3; return eventData; }