<PackageReference Include="OpenTelemetry.Api" Version="1.16.0-rc.1" />

OpenTelemetry.Context.Propagation.EnvironmentVariableCarrier

public static class EnvironmentVariableCarrier
A class containing helper methods for using environment variables as context propagation carriers.
namespace OpenTelemetry.Context.Propagation { public static class EnvironmentVariableCarrier { public static IReadOnlyDictionary<string, string> CurrentProcess { get; } public static IReadOnlyDictionary<string, string> Capture(IEnumerable<KeyValuePair<string, string>> environmentVariables); public static IEnumerable<string> Get<[System.Runtime.CompilerServices.Nullable(0)] T>(T carrier, string key) where T : IEnumerable<KeyValuePair<string, string>>; public static void Set<[System.Runtime.CompilerServices.Nullable(0)] T>(T carrier, string key, string value) where T : IDictionary<string, string>; public static string NormalizeKey(string key); } }