HttpMetricsEnrichmentContext.AddCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a callback to register custom tags for the http.client.request.duration
metric.
public:
static void AddCallback(System::Net::Http::HttpRequestMessage ^ request, Action<System::Net::Http::Metrics::HttpMetricsEnrichmentContext ^> ^ callback);
public static void AddCallback (System.Net.Http.HttpRequestMessage request, Action<System.Net.Http.Metrics.HttpMetricsEnrichmentContext> callback);
static member AddCallback : System.Net.Http.HttpRequestMessage * Action<System.Net.Http.Metrics.HttpMetricsEnrichmentContext> -> unit
Public Shared Sub AddCallback (request As HttpRequestMessage, callback As Action(Of HttpMetricsEnrichmentContext))
Parameters
- request
- HttpRequestMessage
The HttpRequestMessage to apply enrichment to.
- callback
- Action<HttpMetricsEnrichmentContext>
The callback responsible for adding custom tags via AddCustomTag(String, Object).
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.