@reclaimprotocol/attestor-core
Version:
<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>
12 lines (11 loc) • 429 B
TypeScript
import { Agent } from 'elastic-apm-node';
/**
* Initialises the APM agent if required,
* and returns it.
* If ELASTIC_APM_SERVER_URL & ELASTIC_APM_SECRET_TOKEN
* are not set will return undefined
*
* Utilises the standard env variables mentioned
* here: https://www.elastic.co/guide/en/apm/agent/nodejs/current/custom-stack.html#custom-stack-advanced-configuration
*/
export declare function getApm(): Agent | undefined;