Shared type definitions for the LogTide SDK ecosystem
npm install @logtide/types

Shared TypeScript type definitions for the LogTide JavaScript SDK ecosystem.
---
``bash`
npm install @logtide/typesor
pnpm add @logtide/typesor
yarn add @logtide/types
> Note: You typically don't need to install this package directly. It's automatically included as a dependency of @logtide/core and all framework packages.
---
`typescript`
import type { LogLevel, LogEntry, InternalLogEntry } from '@logtide/types';
| Type | Description |
|------|-------------|
| LogLevel | 'debug' \| 'info' \| 'warn' \| 'error' \| 'critical' |LogEntry
| | Log entry with service, level, message, metadata, trace/span IDs |InternalLogEntry
| | LogEntry with required time field (used internally) |
`typescript`
import type { Span, SpanStatus, SpanAttributes } from '@logtide/types';
| Type | Description |
|------|-------------|
| Span | Distributed trace span with traceId, spanId, name, status, timing |SpanStatus
| | 'ok' \| 'error' \| 'unset' |SpanAttributes
| | Record |
`typescript`
import type { Breadcrumb, BreadcrumbType } from '@logtide/types';
| Type | Description |
|------|-------------|
| BreadcrumbType | 'http' \| 'navigation' \| 'ui' \| 'console' \| 'error' \| 'query' \| 'custom' |Breadcrumb
| | Breadcrumb with type, category, message, level, timestamp, data |
`typescript`
import type { Transport, Integration, Client } from '@logtide/types';
| Type | Description |
|------|-------------|
| Transport | Interface for sending logs and spans (sendLogs, sendSpans, flush) |Integration
| | Plugin interface with setup(client) and optional teardown() |Client
| | Minimal client interface for integrations |
`typescript`
import type { ClientOptions, DSN } from '@logtide/types';
| Type | Description |
|------|-------------|
| ClientOptions | Full configuration: DSN (or apiUrl + apiKey), service, batching, retry, circuit breaker, etc. |DSN
| | Parsed DSN with apiUrl, apiKey` |
---
MIT License - see LICENSE for details.