irontelemetry-js/dist/types/breadcrumbs.d.ts
logikonline 8c300c1f8d Include dist folder for git-based installs
Unignored dist/ so yarn/npm can install from git URL
without needing to build locally.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 15:12:47 -05:00

32 lines
862 B
TypeScript

import type { Breadcrumb, BreadcrumbCategory, SeverityLevel } from './types';
/**
* Manages breadcrumbs for an SDK instance
*/
export declare class BreadcrumbManager {
private readonly maxBreadcrumbs;
private breadcrumbs;
constructor(maxBreadcrumbs?: number);
/**
* Add a breadcrumb
*/
add(message: string, category?: BreadcrumbCategory, level?: SeverityLevel, data?: Record<string, unknown>): void;
/**
* Add a breadcrumb from a full Breadcrumb object
*/
addBreadcrumb(breadcrumb: Omit<Breadcrumb, 'timestamp'> & {
timestamp?: Date;
}): void;
/**
* Get all breadcrumbs
*/
getAll(): Breadcrumb[];
/**
* Clear all breadcrumbs
*/
clear(): void;
/**
* Get the number of breadcrumbs
*/
get count(): number;
}
//# sourceMappingURL=breadcrumbs.d.ts.map