public void FromRequest_ValidNoTrace() { var wrapper = CreateWrapperWithTraceHeader(CreateTraceHeaderValue(0)); var context = TraceHeaderContext.FromWrapper(wrapper); Assert.True(SpanId == context.SpanId); Assert.Equal(TraceId, context.TraceId); Assert.False(context.ShouldTrace); }
public void FromRequest_InvalidHeader() { var wrapper = CreateWrapperWithTraceHeader("1234=0"); CheckInvalid(TraceHeaderContext.FromWrapper(wrapper)); }