UNPKG

@dash0/sdk-web

Version:

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

13 lines (12 loc) 577 B
import { AttributeValueType } from "../utils/otel"; import { AnyValue } from "../types/otlp"; /** * Adds a signal attribute to be transmitted with every signal. * Note: if you need to ensure attributes are included with signals transmitted on initial page load, you should use * the "additionalSignalAttributes" property of the init call instead */ export declare function addSignalAttribute(name: string, value: AttributeValueType | AnyValue): void; /** * Removes a previously added signal attribute */ export declare function removeSignalAttribute(name: string): void;