private SimpleManagedTracer(IConsumer <TraceProto> consumer, TraceProto trace, ulong?rootSpanParentId = null)
 {
     _consumer         = GaxPreconditions.CheckNotNull(consumer, nameof(consumer));
     _trace            = GaxPreconditions.CheckNotNull(trace, nameof(trace));
     _traceStack       = new Stack <TraceSpan>();
     _spanIdFactory    = SpanIdFactory.Create();
     _rootSpanParentId = rootSpanParentId;
 }
 private SimpleManagedTracer(IConsumer <TraceProto> consumer, string projectId, string traceId, ulong?rootSpanParentId = null)
 {
     _consumer         = GaxPreconditions.CheckNotNull(consumer, nameof(consumer));
     _traceId          = GaxPreconditions.CheckNotNull(traceId, nameof(traceId));
     _projectId        = GaxPreconditions.CheckNotNull(projectId, nameof(projectId));
     _trace            = CreateTraceProto();
     _spanIdFactory    = SpanIdFactory.Create();
     _rootSpanParentId = rootSpanParentId;
 }