1 | import { Context, Span } from '@opentelemetry/api';
|
2 | export declare enum RPCType {
|
3 | HTTP = "http"
|
4 | }
|
5 | declare type HTTPMetadata = {
|
6 | type: RPCType.HTTP;
|
7 | route?: string;
|
8 | span: Span;
|
9 | };
|
10 |
|
11 |
|
12 |
|
13 | export declare type RPCMetadata = HTTPMetadata;
|
14 | export declare function setRPCMetadata(context: Context, meta: RPCMetadata): Context;
|
15 | export declare function deleteRPCMetadata(context: Context): Context;
|
16 | export declare function getRPCMetadata(context: Context): RPCMetadata | undefined;
|
17 | export {};
|
18 |
|
\ | No newline at end of file |