import { InstrumentationScope, KeyValue } from '../../common/v1/common'; import { Resource } from '../../resource/v1/resource'; export interface TracesData { resourceSpans: ResourceSpan[]; } export interface ResourceSpan { resource?: Resource; scopeSpans: ScopeSpan[]; } export interface ScopeSpan { scope?: InstrumentationScope; spans: Span[]; } /** @deprecated this type was renamed to ScopeSpan */ export type ScopeSpans = ScopeSpan; export interface Span { traceId: string; spanId: string; parentSpanId?: string; name: string; kind?: string; startTimeUnixNano: string; endTimeUnixNano: string; attributes?: KeyValue[]; events?: Event[]; links?: Link[]; status?: Status; } export interface Event { timeUnixNano: string; name: string; attributes?: KeyValue[]; } export interface Link { traceId: string; spanId: string; attributes?: KeyValue[]; } export interface Status { code?: typeof StatusCodeUnset | typeof StatusCodeOk | typeof StatusCodeError; message?: string; } export declare const StatusCodeUnset = "STATUS_CODE_UNSET"; export declare const StatusCodeOk = "STATUS_CODE_OK"; export declare const StatusCodeError = "STATUS_CODE_ERROR"; //# sourceMappingURL=trace.d.ts.map