Tracers/Tracer.cs
/// <summary>
/// Use this to trace consume time from a MQ provider.
/// </summary>
Use this to trace consume time from a MQ provider.
Use this to trace consume time from a MQ provider .
public static T TraceConsume<T>(Func<T> function)
        {
            var tracer = new ConsumerTracer();
            try
            {
                tracer.BeginTrace();
                return function.Invoke();
            }
            catch (Exception exception)
            {
                TracerContext.AddTag("Exception", exception.Message);
                TracerContext.AddTag("StackTrace", exception.StackTrace);
            }
            finally
            {
                tracer.EndTrace();
            }
            return default;
        }
public static T TraceConsume < T > ( Func < T > function ) { var tracer = new ConsumerTracer ( ) ; try { tracer . BeginTrace ( ) ; return function . Invoke ( ) ; } catch ( Exception exception ) { TracerContext . AddTag ( " " , exception . Message ) ; TracerContext . AddTag ( " " , exception . StackTrace ) ; } finally { tracer . EndTrace ( ) ; } return default ; }
Use this to trace consume time from a MQ provider.
Use this to trace consume time from a MQ provider .
function
Func<T>
<not_specific>