import Span from '../../trace/span/Span' ; import { SpanCtorOptions } from './Span' ; import SegmentRef from '../../trace/context/SegmentRef' ; import { SpanType } from '../../proto/language-agent/Tracing_pb' ; import { ContextCarrier } from '../context/ContextCarrier' ; export default class EntrySpan extends Span { constructor ( options ) { super ( Object . assign ( options , { type : SpanType . ENTRY , } ) ) ; } extract ( carrier ) { super . extract ( carrier ) ; const ref = SegmentRef . fromCarrier ( carrier ) ; this . refer ( ref ) ; return this ; } }