Class DbServerEndpointUtil

java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.db.internal.DbServerEndpointUtil

public final class DbServerEndpointUtil extends Object
Utilities for validating textual database server endpoints.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Method Details

    • isIpv6Literal

      public static boolean isIpv6Literal(String host)
      Returns whether host is an IPv6 literal accepted as a database server endpoint.

      The value is validated as text and is never resolved as a host name.

      A scoped literal is rejected when its % separator and the first two characters of its zone ID together form the percent-encoding of a URI delimiter, a backslash, or a percent sign.