Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
18 lines
592 B
Plaintext
18 lines
592 B
Plaintext
import { Context, Span } from '@opentelemetry/api';
|
|
export declare enum RPCType {
|
|
HTTP = "http"
|
|
}
|
|
type HTTPMetadata = {
|
|
type: RPCType.HTTP;
|
|
route?: string;
|
|
span: Span;
|
|
};
|
|
/**
|
|
* Allows for future rpc metadata to be used with this mechanism
|
|
*/
|
|
export type RPCMetadata = HTTPMetadata;
|
|
export declare function setRPCMetadata(context: Context, meta: RPCMetadata): Context;
|
|
export declare function deleteRPCMetadata(context: Context): Context;
|
|
export declare function getRPCMetadata(context: Context): RPCMetadata | undefined;
|
|
export {};
|
|
//# sourceMappingURL=rpc-metadata.d.ts.map |