dd-trace-js
dd-trace-js copied to clipboard
Automatic instrumentation for the @hapi/hapi lifecycle events...
will be helpfull if the hapi instrumentation allow an option to enable disable the hapi lifecycle events..
And this events can be traced with the hapi instrumentation if needed...
something like:
// pass option to the automatic hapi plugin instrumentation
tracer.use('hapi', {
"service": "service-name",
"enabled": true,
"blocklist": [
"/management/health"
],
"lifeCycleEvents": true
}
);
So we can see something like:
| DATE | SERVICE | RESOURCE | DURATION | METHOD |
|---|---|---|---|---|
| Mar 24 17:26:29.490 | Service-name | response | - | - |
| Mar 24 17:26:29.490 | Service-name | onPreResponse | - | - |
| Mar 24 17:26:29.490 | Service-name | OnRequest | - | - |
so the APM-TRACES and APM-service will trace this events automatically...