mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-18 04:23:22 +08:00
add v1 tracer interface so we can break out tracing (#523)
This commit is contained in:
parent
46132b6fa8
commit
95a7c821fd
19
src/Ocelot/Logging/ITracer.cs
Normal file
19
src/Ocelot/Logging/ITracer.cs
Normal file
@ -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<HttpResponseMessage> SendAsync(
|
||||||
|
HttpRequestMessage request,
|
||||||
|
CancellationToken cancellationToken,
|
||||||
|
Action<string> addTraceIdToRepo,
|
||||||
|
Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>> baseSendAsync);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user