mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 18:10:50 +08:00 
			
		
		
		
	add v1 tracer interface so we can break out tracing (#523)
This commit is contained in:
		
							
								
								
									
										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);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user