/// <summary> /// Creates a new TraceHttpMessageHandler using the specified ISpanSource. /// </summary> /// <param name="innerHandler">The inner http handler to trace.</param> /// <param name="serviceName">The service name.</param> /// <param name="spanSource">The span source to open new spans from.</param> public TraceHttpMessageHandler(HttpMessageHandler innerHandler, string serviceName, ISpanSource spanSource) { _innerHandler = innerHandler ?? throw new ArgumentNullException(nameof(innerHandler)); _spanSource = spanSource ?? throw new ArgumentNullException(nameof(spanSource)); ServiceName = string.IsNullOrWhiteSpace(serviceName) ? DefaultServiceName : serviceName; }
public TraceStreamStore(MsSqlStreamStore streamStore, string serviceName, ISpanSource spanSource) { _streamStore = streamStore ?? throw new ArgumentException(nameof(streamStore)); _spanSource = spanSource ?? throw new ArgumentException(nameof(spanSource)); ServiceName = serviceName ?? DefaultServiceName; // TODO: Not sure about this _streamStore.OnDispose += OnDispose; }
public TraceDbTransaction(DbConnection connection, DbTransaction transaction, string serviceName, ISpanSource spanSource) { DbConnection = connection ?? throw new ArgumentNullException(nameof(connection)); Transaction = transaction ?? throw new ArgumentNullException(nameof(transaction)); _spanSource = spanSource ?? throw new ArgumentNullException(nameof(spanSource)); ServiceName = string.IsNullOrWhiteSpace(serviceName) ? DefaultServiceName : serviceName; }
/// <summary> /// Creates a new TraceHttpMessageHandler using the specified ISpanSource. /// </summary> /// <param name="innerHandler">The inner http handler to trace.</param> /// <param name="spanSource">The span source to open new spans from.</param> public TraceHttpMessageHandler(HttpMessageHandler innerHandler, ISpanSource spanSource) { _innerHandler = innerHandler ?? throw new ArgumentNullException(nameof(innerHandler)); _spanSource = spanSource ?? throw new ArgumentNullException(nameof(spanSource)); }
public TraceDbConnection(DbConnection connection, string serviceName, ISpanSource spanSource) : base(connection, serviceName, spanSource) { }
public TraceDbConnection(DbConnection connection, ISpanSource spanSource) : base(connection, spanSource) { }
public TraceDbConnection(IDbConnection connection, ISpanSource spanSource) { _connection = connection ?? throw new ArgumentNullException(nameof(connection)); _spanSource = spanSource ?? throw new ArgumentNullException(nameof(spanSource)); }
public TraceDbTransaction(DbConnection connection, DbTransaction transaction, ISpanSource spanSource) : this(connection, transaction, DefaultServiceName, spanSource) { }
/// <summary> /// Creates a new TraceHttpMessageHandler using the specified ISpanSource. /// </summary> /// <param name="innerHandler">The inner http handler to trace.</param> /// <param name="spanSource">The span source to open new spans from.</param> public TraceHttpMessageHandler(HttpMessageHandler innerHandler, ISpanSource spanSource) : this(innerHandler, DefaultServiceName, spanSource) { }
public TraceDbCommand(IDbCommand command, ISpanSource spanSource) { _command = command; _spanSource = spanSource; }