@camunda8/sdk
Version:
[](https://www.npmjs.com/package/@camunda8/sdk)
19 lines (18 loc) • 572 B
TypeScript
import { Got } from 'got';
export interface StackEntry {
location: string;
stack: string;
timestamp: number;
}
export interface CapturedStackTrace {
stacks: StackEntry[];
requestId: string;
capturedAt: number;
apiMethod?: string;
}
/**
* Wrap a got instance with a Proxy that injects AsyncLocalStorage-derived stack context
* into each request's options.context.__stackTrace.
* It preserves the full surface of the original got instance (HTTP verb helpers, extend, etc.).
*/
export declare function createTrackedGot(gotInstance: Got): Got;