Пример #1
0
        /// <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;
        }
Пример #2
0
        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;
        }
Пример #3
0
        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));
 }
Пример #5
0
 public TraceDbConnection(DbConnection connection, string serviceName, ISpanSource spanSource)
     : base(connection, serviceName, spanSource)
 {
 }
Пример #6
0
 public TraceDbConnection(DbConnection connection, ISpanSource spanSource)
     : base(connection, spanSource)
 {
 }
Пример #7
0
 public TraceDbConnection(IDbConnection connection, ISpanSource spanSource)
 {
     _connection = connection ?? throw new ArgumentNullException(nameof(connection));
     _spanSource = spanSource ?? throw new ArgumentNullException(nameof(spanSource));
 }
Пример #8
0
 public TraceDbTransaction(DbConnection connection, DbTransaction transaction, ISpanSource spanSource)
     : this(connection, transaction, DefaultServiceName, spanSource)
 {
 }
Пример #9
0
 /// <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)
 {
 }
Пример #10
0
 public TraceDbCommand(IDbCommand command, ISpanSource spanSource)
 {
     _command    = command;
     _spanSource = spanSource;
 }