@types/newrelic
Advanced tools
@@ -1,2 +0,2 @@ | ||
// Type definitions for newrelic 5.11 | ||
// Type definitions for newrelic 6.2 | ||
// Project: http://github.com/newrelic/node-newrelic | ||
@@ -8,2 +8,3 @@ // Definitions by: Matt R. Wilson <https://github.com/mastermatt> | ||
// Kenneth Aasan <https://github.com/kennethaasan> | ||
// Jon Flaishans <https://github.com/funkswing> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -313,2 +314,8 @@ | ||
/** | ||
* The instrumentLoadedModule method allows you to add stock instrumentation to specific modules | ||
* in situations where it's impossible to have require('newrelic'); as the first line of your app's main module. | ||
*/ | ||
export function instrumentLoadedModule(moduleName: string, moduleInstance: any): boolean; | ||
/** | ||
* Sets an instrumentation callback for a web framework module. | ||
@@ -340,2 +347,15 @@ * | ||
/** | ||
* Returns key/value pairs which can be used to link traces or entities. | ||
* It will only contain items with meaningful values. For instance, if distributed tracing is disabled, | ||
* trace.id will not be included. | ||
*/ | ||
export function getLinkingMetadata(omitSupportability?: boolean): LinkingMetadata; | ||
/** | ||
* Returns and object containing the current trace ID and span ID. | ||
* This API requires distributed tracing to be enabled or an empty object will be returned. | ||
*/ | ||
export function getTraceMetadata(): TraceMetadata; | ||
/** | ||
* Wraps an AWS Lambda function with NewRelic instrumentation and returns the value of the handler | ||
@@ -394,1 +414,49 @@ * | ||
} | ||
export interface LinkingMetadata { | ||
/** | ||
* The current trace ID | ||
*/ | ||
'trace.id'?: string; | ||
/** | ||
* The current span ID | ||
*/ | ||
'span.id'?: string; | ||
/** | ||
* The application name specified in the connect request as | ||
* app_name. If multiple application names are specified this will only be | ||
* the first name | ||
*/ | ||
'entity.name': string; | ||
/** | ||
* The string "SERVICE" | ||
*/ | ||
'entity.type': string; | ||
/** | ||
* The entity ID returned in the connect reply as entity_guid | ||
*/ | ||
'entity.guid'?: string; | ||
/** | ||
* The hostname as specified in the connect request as | ||
* utilization.full_hostname. If utilization.full_hostname is null or empty, | ||
* this will be the hostname specified in the connect request as host. | ||
*/ | ||
hostname: string; | ||
} | ||
export interface TraceMetadata { | ||
/** | ||
* The current trace ID | ||
*/ | ||
traceId?: string; | ||
/** | ||
* The current span ID | ||
*/ | ||
spanId?: string; | ||
} |
{ | ||
"name": "@types/newrelic", | ||
"version": "5.11.2", | ||
"version": "6.2.0", | ||
"description": "TypeScript definitions for newrelic", | ||
@@ -31,2 +31,7 @@ "license": "MIT", | ||
"githubUsername": "kennethaasan" | ||
}, | ||
{ | ||
"name": "Jon Flaishans", | ||
"url": "https://github.com/funkswing", | ||
"githubUsername": "funkswing" | ||
} | ||
@@ -43,4 +48,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "ab53add3433ee5802bb89a94e393bf1fccab9622a1cc667fed8d86d9657ba3ce", | ||
"typesPublisherContentHash": "430c4e76c6ef998371e49a9d069cb600b523d901e391677cf709a1ccfde39a71", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 22 Nov 2019 15:44:15 GMT | ||
* Last updated: Mon, 03 Feb 2020 17:24:23 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Matt R. Wilson (https://github.com/mastermatt), Brooks Patton (https://github.com/brookspatton), Michael Bond (https://github.com/MichaelRBond), Kyle Scully (https://github.com/zieka), and Kenneth Aasan (https://github.com/kennethaasan). | ||
These definitions were written by Matt R. Wilson (https://github.com/mastermatt), Brooks Patton (https://github.com/brookspatton), Michael Bond (https://github.com/MichaelRBond), Kyle Scully (https://github.com/zieka), Kenneth Aasan (https://github.com/kennethaasan), and Jon Flaishans (https://github.com/funkswing). |
20998
10.98%413
16.01%