UNPKG

608 BTypeScriptView Raw
1import { Context, Span } from '@opentelemetry/api';
2export declare enum RPCType {
3 HTTP = "http"
4}
5declare type HTTPMetadata = {
6 type: RPCType.HTTP;
7 route?: string;
8 span: Span;
9};
10/**
11 * Allows for future rpc metadata to be used with this mechanism
12 */
13export declare type RPCMetadata = HTTPMetadata;
14export declare function setRPCMetadata(context: Context, meta: RPCMetadata): Context;
15export declare function deleteRPCMetadata(context: Context): Context;
16export declare function getRPCMetadata(context: Context): RPCMetadata | undefined;
17export {};
18//# sourceMappingURL=rpc-metadata.d.ts.map
\No newline at end of file