SpanData: {
    attributes: Record<string, any>;
    displayName: string;
    endTime: number;
    instrumentationLibrary: {
        name: string;
        schemaUrl?: string;
        version?: string;
    };
    links?: {
        attributes?: Record<string, any>;
        context?: {
            isRemote?: boolean;
            spanId: string;
            traceFlags: number;
            traceId: string;
        };
        droppedAttributesCount?: number;
    }[];
    parentSpanId?: string;
    sameProcessAsParentSpan?: { value: boolean };
    spanId: string;
    spanKind: string;
    startTime: number;
    status?: { code: number; message?: string };
    timeEvents?: {
        timeEvent: {
            annotation: { attributes: Record<string, any>; description: string };
            time: number;
        }[];
    };
    traceId: string;
    truncated?: boolean;
}

Type declaration

  • attributes: Record<string, any>
  • displayName: string
  • endTime: number
  • instrumentationLibrary: { name: string; schemaUrl?: string; version?: string }
  • Optionallinks?: {
        attributes?: Record<string, any>;
        context?: {
            isRemote?: boolean;
            spanId: string;
            traceFlags: number;
            traceId: string;
        };
        droppedAttributesCount?: number;
    }[]
  • OptionalparentSpanId?: string
  • OptionalsameProcessAsParentSpan?: { value: boolean }
  • spanId: string
  • spanKind: string
  • startTime: number
  • Optionalstatus?: { code: number; message?: string }
  • OptionaltimeEvents?: {
        timeEvent: {
            annotation: { attributes: Record<string, any>; description: string };
            time: number;
        }[];
    }
  • traceId: string
  • Optionaltruncated?: boolean