@dash0hq/sdk-web
Version:
Dash0's Web SDK to collect telemetry from end-users' web browsers
13 lines (12 loc) • 475 B
TypeScript
import { AnyValue } from "../../types/otlp";
import { LOG_SEVERITY_TEXT } from "../semantic-conventions";
import { AttributeValueType } from "../utils/otel";
import { TimeInput } from "../utils";
type EventOptions = {
timestamp?: TimeInput;
data?: AttributeValueType | AnyValue;
attributes?: Record<string, AttributeValueType | AnyValue>;
severity?: LOG_SEVERITY_TEXT;
};
export declare function sendEvent(name: string, opts?: EventOptions): void;
export {};