@Test public void testInitialContext() { SpanContextFactory factory = new SpanContextFactory(new TestTraceOptionsFactory(), new SequentialTraceIdFactory(), new SequentialSpanIdFactory()); SpanContext initial = factory.initialContext(); assertThat(initial.getTraceId().isValid()).isFalse(); assertThat(initial.getSpanId().isValid()).isFalse(); assertThat(initial.getTraceOptions().getOptionsMask()).isEqualTo(0); }
public SpanContext initialContext() { return new SpanContext(TraceId.invalid(), SpanId.invalid(), new TraceOptions()); }
SpanContextFactory { public SpanContext initialContext() { return new SpanContext(TraceId.invalid(), SpanId.invalid(), new TraceOptions()); } }
SpanContextFactory { public SpanContext initialContext() { return new SpanContext(TraceId.invalid(), SpanId.invalid(), new TraceOptions()); } SpanContextFactory(TraceOptionsFactory traceOptionsFactory);  SpanContextFactory(TraceOptionsFactory traceOptionsFactory,
      IdFactory<TraceId> traceIdFactory, IdFactory<SpanId> spanIdFactory); }
SpanContextFactory { public SpanContext initialContext() { return new SpanContext(TraceId.invalid(), SpanId.invalid(), new TraceOptions()); } SpanContextFactory(TraceOptionsFactory traceOptionsFactory);  SpanContextFactory(TraceOptionsFactory traceOptionsFactory,
      IdFactory<TraceId> traceIdFactory, IdFactory<SpanId> spanIdFactory); static String headerKey(); SpanContext childContext(SpanContext parentContext); SpanContext initialContext(); SpanContext fromHeader(String header); static String toHeader(SpanContext context); }
SpanContextFactory { public SpanContext initialContext() { return new SpanContext(TraceId.invalid(), SpanId.invalid(), new TraceOptions()); } SpanContextFactory(TraceOptionsFactory traceOptionsFactory);  SpanContextFactory(TraceOptionsFactory traceOptionsFactory,
      IdFactory<TraceId> traceIdFactory, IdFactory<SpanId> spanIdFactory); static String headerKey(); SpanContext childContext(SpanContext parentContext); SpanContext initialContext(); SpanContext fromHeader(String header); static String toHeader(SpanContext context);  }