-
Notifications
You must be signed in to change notification settings - Fork 732
/
TelemetryConstants.cs
35 lines (29 loc) · 1.24 KB
/
TelemetryConstants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.Extensions.Http.Diagnostics;
/// <summary>
/// Common telemetry constants used by various telemetry libraries.
/// </summary>
public static class TelemetryConstants
{
/// <summary>
/// Request metadata key that is used when storing request metadata object.
/// </summary>
public const string RequestMetadataKey = "Extensions-RequestMetadata";
/// <summary>
/// Represents the placeholder text for an unknown request name or dependency name in telemetry.
/// </summary>
public const string Unknown = "unknown";
/// <summary>
/// Represents the placeholder text used for redacted data where needed.
/// </summary>
public const string Redacted = "REDACTED";
/// <summary>
/// Represents the header for client application name, sent on an outgoing HTTP call.
/// </summary>
public const string ClientApplicationNameHeader = "X-ClientApplication";
/// <summary>
/// Represents the header for server application name, sent on a HTTP request.
/// </summary>
public const string ServerApplicationNameHeader = "X-ServerApplication";
}