From 95a7c821fdb441994388728812eea9a36ce34ffa Mon Sep 17 00:00:00 2001 From: Tom Pallister Date: Thu, 2 Aug 2018 18:27:19 +0100 Subject: [PATCH] add v1 tracer interface so we can break out tracing (#523) --- src/Ocelot/Logging/ITracer.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Ocelot/Logging/ITracer.cs diff --git a/src/Ocelot/Logging/ITracer.cs b/src/Ocelot/Logging/ITracer.cs new file mode 100644 index 00000000..9e035d75 --- /dev/null +++ b/src/Ocelot/Logging/ITracer.cs @@ -0,0 +1,19 @@ +namespace Ocelot.Logging +{ + using System; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using Microsoft.AspNetCore.Http; + + public interface ITracer + { + void Event(HttpContext httpContext, string @event); + + Task SendAsync( + HttpRequestMessage request, + CancellationToken cancellationToken, + Action addTraceIdToRepo, + Func> baseSendAsync); + } +}