it('should not set timestamp or duration on shared span', () => { const span = new Span(new TraceId({ traceId: 'a', parentId: new Some('b'), spanId: 'c' })); span.setName('GET'); span.setKind('SERVER'); span.setTimestamp(1); span.setDuration(1); span.setShared(true); const spanThrift = deserialize(THRIFT.encode(span)); expect(spanThrift.timestamp).to.equal(null); expect(spanThrift.duration).to.equal(null); });
span.setTimestamp(1); span.setDuration(1); span.setShared(true); span.putTag('warning', 'The cake is a lie');
it('should not set timestamp or duration on shared span', () => { const span = new Span(new TraceId({ traceId: 'a', parentId: new Some('b'), spanId: 'c' })); span.setName('GET'); span.setKind('SERVER'); span.setTimestamp(1); span.setDuration(1); span.setShared(true); const spanThrift = deserialize(THRIFT.encode(span)); expect(spanThrift.timestamp).to.equal(null); expect(spanThrift.duration).to.equal(null); });
span.setTimestamp(1); span.setDuration(1); span.setShared(true); span.putTag('warning', 'The cake is a lie');