dd-trace-js icon indicating copy to clipboard operation
dd-trace-js copied to clipboard

Automatic instrumentation for the @hapi/hapi lifecycle events...

Open aaestrada opened this issue 3 years ago • 0 comments

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...

aaestrada avatar Mar 24 '22 23:03 aaestrada