import { Primitive } from './misc' ; import { Transaction } from './transaction' ; /** Interface holding all properties that can be set on a Span on creation. */ export interface SpanContext { /**
     * Description of the Span.
     */ description ? : string ; /**
     * Operation of the Span.
     */ op ? : string ; /**
     * Completion status of the Span.
     * See: {@sentry/tracing SpanStatus} for possible values
     */ status ? : string ; /**
     * Parent Span ID
     */ parentSpanId ? : string ; /**
     * Was this span chosen to be sent as part of the sample?
     */ sampled ? : boolean ; /**
     * Span ID
     */ spanId ? : string ; /**
     * Trace ID
     */ traceId ? : string ; /**
     * Tags of the Span.
     */ tags ? : { [ key ] : Primitive ; } ; /**
     * Data of the Span.
     */ data ? : { [ key ] : any ; } ; /**
     * Timestamp in seconds (epoch time) indicating when the span started.
     */ startTimestamp ? : number ; /**
     * Timestamp in seconds (epoch time) indicating when the span ended.
     */ endTimestamp ? : number ; } /** Span holding trace_id, span_id */ export interface Span extends SpanContext { inheritDoc spanId : string ; inheritDoc traceId : string ; inheritDoc startTimestamp : number ; inheritDoc tags : { [ key ] : Primitive ; } ; inheritDoc data : { [ key ] : any ; } ; /**
     * The transaction containing this span
     */ transaction ? : Transaction ; param endTimestamp finish ( endTimestamp ? ) : void ; param key param value setTag ( key , value ) : this ; param key param value setData ( key , value ) : this ; param status setStatus ( status ) : this ; param httpStatus setHttpStatus ( httpStatus ) : this ; /**
     * Use  startChild deprecated child ( spanContext ? ) : Span ; /**
     * Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
     * Also the `sampled` decision will be inherited.
     */ startChild ( spanContext ? ) : Span ; /**
     * Determines whether span was successful (HTTP200)
     */ isSuccess ( ) : boolean ; /** Return a traceparent compatible header string */ toTraceparent ( ) : string ; /** Returns the current span properties as a `SpanContext` */ toContext ( ) : SpanContext ; /** Updates the current span with a new `SpanContext` */ updateWithContext ( spanContext ) : this ; /** Convert the object to JSON for w. spans array info only */ getTraceContext ( ) : { data ? : { [ key ] : any ; } ; description ? : string ; op ? : string ; parent_span_id ? : string ; span_id : string ; status ? : string ; tags ? : { [ key ] : Primitive ; } ; trace_id : string ; } ; /** Convert the object to JSON */ toJSON ( ) : { data ? : { [ key ] : any ; } ; description ? : string ; op ? : string ; parent_span_id ? : string ; span_id : string ; start_timestamp : number ; status ? : string ; tags ? : { [ key ] : Primitive ; } ; timestamp ? : number ; trace_id : string ; } ; }