-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Martin Taillefer <mataille@microsoft.com>
- Loading branch information
Showing
26 changed files
with
936 additions
and
267 deletions.
There are no files selected for viewing
145 changes: 0 additions & 145 deletions
145
...Libraries/Microsoft.Extensions.Http.Telemetry.PerformanceTests/RedactionProcessorBench.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Libraries/Microsoft.Extensions.Http.Telemetry/Tracing/IHttpClientTraceEnricher.netfx.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#if !NETCOREAPP3_1_OR_GREATER | ||
|
||
using System.Diagnostics; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Net; | ||
|
||
namespace Microsoft.Extensions.Http.Telemetry.Tracing; | ||
|
||
/// <summary> | ||
/// Interface for implementing enricher for enriching only traces for outgoing HTTP requests. | ||
/// </summary> | ||
public interface IHttpClientTraceEnricher | ||
{ | ||
/// <summary> | ||
/// Enrich trace with desired tags. | ||
/// </summary> | ||
/// <param name="activity"><see cref="Activity"/> object to be used to add the required tags to enrich the traces.</param> | ||
/// <param name="webRequest"><see cref="HttpWebRequest"/> object associated with the outgoing request for the trace.</param> | ||
/// <param name="webResponse"><see cref="HttpWebResponse"/> object associated with the outgoing request for the trace.</param> | ||
/// <remarks> | ||
/// If your enricher fetches some information from <see cref="HttpWebRequest"/> or <see cref="HttpWebResponse"/> to enrich HTTP traces, then make sure to check it for <see langword="null"/>. | ||
/// </remarks> | ||
[Experimental] | ||
void Enrich(Activity activity, HttpWebRequest? webRequest, HttpWebResponse? webResponse); | ||
} | ||
|
||
#endif |
Oops, something went wrong.