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

Azure.Monitor.OpenTelemetry.Exporter.Internals.ConnectionString.ConnectionStringParser

static class ConnectionStringParser
public static ConnectionVars GetValues(string connectionString)

Parse a connection string that matches the format: "key1=value1;key2=value2;key3=value3". This method will encapsulate all exception handling.