Beispiel #1
0
 protected TracingConfiguration(ITracer tracer, IOperationNameConstructor operationNameConstructor = null, bool streaming = false, bool verbose = false)
 {
     Tracer = tracer;
     OperationNameConstructor = operationNameConstructor ?? new DefaultOperationNameConstructor();
     Streaming = streaming;
     Verbose   = verbose;
 }
Beispiel #2
0
 internal ClientTracingConfiguration(ITracer tracer, IOperationNameConstructor operationNameConstructor, bool streaming, bool streamingInputSpans, bool verbose, ISet <RequestAttribute> tracedAttributes, bool waitForReady, CancellationToken fallbackCancellationToken)
     : base(tracer, operationNameConstructor, streaming, streamingInputSpans, verbose)
 {
     TracedAttributes          = tracedAttributes ?? new HashSet <RequestAttribute>();
     WaitForReady              = waitForReady;
     FallbackCancellationToken = fallbackCancellationToken;
 }
 protected TracingConfiguration(ITracer tracer, IOperationNameConstructor operationNameConstructor = null, bool streaming = false, bool verbose = false)
 {
     Tracer = tracer ?? throw new ArgumentNullException(nameof(tracer));
     OperationNameConstructor = operationNameConstructor ?? new DefaultOperationNameConstructor();
     Streaming = streaming;
     Verbose   = verbose;
 }
 internal ServerTracingConfiguration(ITracer tracer, IOperationNameConstructor operationNameConstructor, bool streaming, bool verbose, ISet <RequestAttribute> tracedAttributes)
     : base(tracer, operationNameConstructor, streaming, verbose)
 {
     TracedAttributes = tracedAttributes ?? new HashSet <RequestAttribute>();
 }
Beispiel #5
0
 /// <param name="operationNameConstructor">to name all spans created by this intercepter</param>
 /// <returns>this Builder with configured operation name</returns>
 public Builder WithOperationName(IOperationNameConstructor operationNameConstructor)
 {
     _operationNameConstructor = operationNameConstructor;
     return(this);
 }