Microsoft.ApplicationInsights.Extensibility.Implementation.Property
A helper class for implementing properties of telemetry and context classes.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation
{
internal static class Property
{
public const int MaxDictionaryNameLength = 150;
public const int MaxDependencyTypeLength = 1024;
public const int MaxValueLength = 8192;
public const int MaxResultCodeLength = 1024;
public const int MaxEventNameLength = 512;
public const int MaxNameLength = 1024;
public const int MaxMessageLength = 32768;
public const int MaxUrlLength = 2048;
public const int MaxDataLength = 8192;
public const int MaxTestNameLength = 1024;
public const int MaxRunLocationLength = 2024;
public const int MaxAvailabilityMessageLength = 8192;
public const int MaxMetricNamespaceLength = 256;
public static readonly IDictionary<string, int> TagSizeLimits;
public static void Set<T>(ref T property, T value) where T : class;
public static void Initialize<T>(ref T? property, T? value) where T : struct;
public static void Initialize(ref string property, string value);
public static string SanitizeEventName(this string name);
public static string SanitizeName(this string name);
public static string SanitizeDependencyType(this string value);
public static string SanitizeResultCode(this string value);
public static string SanitizeValue(this string value);
public static string SanitizeMessage(this string message);
public static string SanitizeData(this string message);
public static Uri SanitizeUri(this Uri uri);
public static string SanitizeTestName(this string value);
public static string SanitizeRunLocation(this string value);
public static string SanitizeAvailabilityMessage(this string value);
public static void SanitizeProperties(this IDictionary<string, string> dictionary);
public static void SanitizeMeasurements(this IDictionary<string, double> dictionary);
public static string TrimAndTruncate(string value, int maxLength);
}
}