import { Serializable } from "./serializable"; import type { HashMap } from "./hashmap"; import type { Breadcrumb } from "./breadcrumb"; import type { SpanError } from "./error"; import { BacktraceMatcher } from "./options"; export interface SpanData { timestamp: number; action?: string; namespace: string; error: SpanError; revision?: string; tags?: HashMap; params?: HashMap; environment?: HashMap; breadcrumbs?: Breadcrumb[]; } export declare class Span extends Serializable { constructor(span?: Partial); setAction(name: string): this; getAction(): string | undefined; setNamespace(name: string): this; getNamespace(): string | undefined; setError(error: Error | T): this; getError(): SpanError | undefined; setTags(tags: HashMap): this; getTags(): HashMap; setParams(params: HashMap): this; getParams(): HashMap; setBreadcrumbs(breadcrumbs: Breadcrumb[]): this; getBreadcrumbs(): Breadcrumb[]; setEnvironment(environment: HashMap): this; getEnvironment(): HashMap; cleanBacktracePath(matchBacktracePaths: BacktraceMatcher[]): this; } export declare function toBacktraceMatcher(regexp: RegExp): BacktraceMatcher; //# sourceMappingURL=span.d.ts.map