@multiplayer-app/session-recorder-common
Version:
Multiplayer Fullstack Session Recorder - opentelemetry
90 lines • 2.48 kB
TypeScript
import { AttributeValue } from '@opentelemetry/api';
/**
* @description Set attribute to current span
* @param {string} key
* @param {AttributeValue} value
* @returns {void}
*/
export declare const setAttribute: (key: string, value: AttributeValue) => void;
/**
* @description Set request body to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setHttpRequestBody: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set request headers to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setHttpRequestHeaders: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set response body to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setHttpResponseBody: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set response body to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setHttpResponseHeaders: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set message body to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setMessageBody: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set rpc request message to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setRpcRequestMessage: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set rpc response message to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setRpcResponseMessage: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set grpc request message to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setGrpcRequestMessage: (body: any, options?: {
mask: boolean;
}) => void;
/**
* @description Set grpc response message to current span attributes
* @param body
* @param {{ mask: boolean }} options
* @returns {void}
*/
export declare const setGrpcResponseMessage: (body: any, options?: {
mask: boolean;
}) => void;
//# sourceMappingURL=set-attribute.d.ts.map