Tracers/Tracer.cs
/// <summary>
/// Use this to trace procuce time to a MQ provider.
/// </summary>
Use this to trace procuce time to a MQ provider.
Use this to trace procuce time to a MQ provider .
public static void TraceProduce(Action function)
        {
            var tracer = new ProducerTracer();
            try
            {
                tracer.BeginTrace();
                function.Invoke();
            }
            catch (Exception exception)
            {
                TracerContext.AddTag("Exception", exception.Message);
                TracerContext.AddTag("StackTrace", exception.StackTrace);
            }
            finally
            {
                tracer.EndTrace();
            }
        }
public static void TraceProduce ( Action function ) { var tracer = new ProducerTracer ( ) ; try { tracer . BeginTrace ( ) ; function . Invoke ( ) ; } catch ( Exception exception ) { TracerContext . AddTag ( " " , exception . Message ) ; TracerContext . AddTag ( " " , exception . StackTrace ) ; } finally { tracer . EndTrace ( ) ; } }
Use this to trace procuce time to a MQ provider.
Use this to trace procuce time to a MQ provider .
function
Action