respan-sdk
Core types, constants, and utilities for the Respan TypeScript SDK.
@respan/respan-sdk provides shared types, span attribute constants, and utilities used across all Respan TypeScript packages.
Install
Key exports
RespanSpanAttributes— Enum of all span attribute keysRESPAN_SPAN_ATTRIBUTES_MAP— Maps parameter names to OTEL attribute pathsRespanLogType— Log type enum (chat, workflow, task, tool, agent, etc.)resolveTracingIngestEndpoint()— Resolves the traces API endpointfetchWithRetry()— HTTP fetch with exponential backoffRespanPayloadSchema— Zod schema for payload validation