<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.9.0" />

Azure.Monitor.OpenTelemetry.LiveMetrics.Models.CollectionConfigurationError

Represents an error while SDK parses and applies an instance of CollectionConfigurationInfo.

Error type.

public IList<KeyValuePairString> Data { get; }

Custom properties to add more information to the error.

public string FullException { get; }

Exception that led to the creation of the configuration error.

public string Message { get; }

Error message.

public CollectionConfigurationError(CollectionConfigurationErrorType collectionConfigurationErrorType, string message, string fullException, IEnumerable<KeyValuePairString> data)

Initializes a new instance of CollectionConfigurationError.

public static CollectionConfigurationError CreateError(CollectionConfigurationErrorType errorType, string message, Exception exception, Tuple<string, string>[] data)