import { BaseMetadata } from './base-metadata'; import { TracesData } from './otlp/trace/v1/trace'; /** * Partial trace information returned by search endpoint */ export interface TraceSearchResult { traceId: string; rootServiceName: string; rootTraceName: string; startTimeUnixMs: number; durationMs: number; serviceStats: Record; } export interface ServiceStats { spanCount: number; /** number of spans with errors, unset if zero */ errorCount?: number; } /** * A generalized data-model that will be used by Panel components * to display traces. * * If the query contains a valid trace ID, the 'trace' attribute will contain the entire trace. * If the query contains a TraceQL query, the 'searchResult' attribute will contain the search results. */ export interface TraceData { trace?: TracesData; searchResult?: TraceSearchResult[]; metadata?: TraceMetaData; } export interface TraceMetaData extends BaseMetadata { /** this field indicates if there are more traces matching the search query, however not all traces were returned */ hasMoreResults?: boolean; [key: string]: unknown; } export declare function isValidTraceId(traceId: string): boolean; //# sourceMappingURL=trace-data.d.ts.map