@dash0/sdk-web
Version:
Dash0's Web SDK to collect telemetry from end-users' web browsers
23 lines (19 loc) • 814 B
text/typescript
import { debug, INIT_MESSAGE } from "../utils";
import { init as initApi } from "../api/init";
import { InitOptions } from "../types/options";
export * from "../api/identify";
export * from "../api/debug";
export * from "../api/attributes";
export * from "../api/events";
export * from "../api/log-level";
export { terminateSession } from "../api/session";
export { reportError } from "../api/report-error";
// Additional utility types
export type { AttributeValueType } from "../utils/otel";
export type { AnyValue } from "../types/otlp";
export type { PageViewMeta, PropagatorConfig, PropagatorType } from "../vars";
export type { UrlAttributeScrubber, UrlAttributeRecord } from "../attributes/url";
export function init(opts: InitOptions): void {
debug(`${INIT_MESSAGE} (via package)`);
initApi(opts);
}