UNPKG

@dash0/sdk-web

Version:

Dash0's Web SDK to collect telemetry from end-users' web browsers

10 lines (9 loc) 741 B
import { AnyValue, KeyValue } from "../../../types/otlp"; type PrimitiveAttributeValue = string | number | boolean; export type AttributeValueType = PrimitiveAttributeValue | Array<PrimitiveAttributeValue> | Record<string, PrimitiveAttributeValue>; export declare function toAnyValue(value: AttributeValueType | AnyValue): AnyValue; export declare function toAnyValue(value?: AttributeValueType | AnyValue): AnyValue | undefined; export declare function toKeyValue(key: string, value: AttributeValueType | AnyValue): KeyValue; export declare function addAttribute(attributes: KeyValue[], key: string, value: AttributeValueType | AnyValue): void; export declare function removeAttribute(attributes: KeyValue[], key: string): void; export {};