mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
newrelic adds distributed tracing Transaction handle method insertDistributedTraceHeaders (#42775)
* NewRelic: Adds insertDistributedTraceHeaders * NewRelic: Adds insertDistributedTraceHeaders * NewRelic: Adds insertDistributedTraceHeaders
This commit is contained in:
parent
f53fd2ba9c
commit
45762ad1ee
9
types/newrelic/index.d.ts
vendored
9
types/newrelic/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for newrelic 6.2
|
||||
// Type definitions for newrelic 6.4
|
||||
// Project: http://github.com/newrelic/node-newrelic
|
||||
// Definitions by: Matt R. Wilson <https://github.com/mastermatt>
|
||||
// Brooks Patton <https://github.com/brookspatton>
|
||||
@ -408,6 +408,13 @@ export interface TransactionHandle {
|
||||
* Parses incoming distributed trace header payload.
|
||||
*/
|
||||
acceptDistributedTracePayload(payload: DistributedTracePayload): void;
|
||||
|
||||
/**
|
||||
* Inserts distributed trace headers into the provided headers map.
|
||||
*/
|
||||
insertDistributedTraceHeaders(headers: {
|
||||
[header: string]: number | string | string[] | undefined;
|
||||
}): void;
|
||||
}
|
||||
|
||||
export interface LinkingMetadata {
|
||||
|
||||
@ -9,6 +9,7 @@ trans.end(); // $ExpectType void
|
||||
trans.end(() => {}); // $ExpectType void
|
||||
const payload = trans.createDistributedTracePayload(); // $ExpectType DistributedTracePayload
|
||||
trans.acceptDistributedTracePayload(payload); // $ExpectType void
|
||||
trans.insertDistributedTraceHeaders({ test: "test" }); // $ExpectType void
|
||||
|
||||
newrelic.setDispatcher('foo'); // $ExpectType void
|
||||
newrelic.setDispatcher('foo', '42'); // $ExpectType void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user