Class RedisServerTarget
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.db.internal.RedisServerTarget
The logical Redis server a client was configured to talk to, rendered as
server.address
and server.port.
Configured members are normalized before they are rendered: schemes, credentials, and URL suffixes are stripped, while host names, IPv4 literals, IPv6 literals, and Unix socket paths are preserved. A member that cannot be normalized drops the whole target, because a partial list describes a deployment the client was never pointed at.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPort()static StringnormalizeHostAndPort(String value) static RedisServerTargetofEndpoint(String endpoint) static RedisServerTargetofEndpointAndUnorderedEndpoints(String endpoint, List<String> otherEndpoints) Returns a target that keepsendpointin front, such as the master of a master and replicas deployment, and sortsotherEndpointsso that permutations of the same deployment render identically.static RedisServerTargetofEndpoints(List<String> endpoints) static RedisServerTargetofHostAndPort(String host, int port) static RedisServerTargetofLogicalName(String name) static RedisServerTargetofUnorderedEndpoints(List<String> endpoints) static RedisServerTargetofUnorderedEndpointsAndLogicalName(List<String> endpoints, String name)
-
Method Details
-
ofLogicalName
-
ofEndpoint
-
ofHostAndPort
-
ofEndpoints
-
ofUnorderedEndpoints
-
ofEndpointAndUnorderedEndpoints
@Nullable public static RedisServerTarget ofEndpointAndUnorderedEndpoints(@Nullable String endpoint, @Nullable List<String> otherEndpoints) Returns a target that keepsendpointin front, such as the master of a master and replicas deployment, and sortsotherEndpointsso that permutations of the same deployment render identically. -
ofUnorderedEndpointsAndLogicalName
-
getAddress
-
getPort
-
endpoint
-
normalizeHostAndPort
-