|
// 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";
}
|