Class ServicePeerResolver
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.service.peer.internal.ServicePeerResolver
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()voidresolve(String serverAddress, Integer port, Supplier<String> pathSupplier, BiConsumer<io.opentelemetry.api.common.AttributeKey<String>, String> attributeSetter) Resolves an exact server.address match first, then falls back to matching server.address as a host together with the separately supplied port and path.
-
Constructor Details
-
ServicePeerResolver
public ServicePeerResolver(io.opentelemetry.api.OpenTelemetry openTelemetry)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
resolve
public void resolve(String serverAddress, @Nullable Integer port, Supplier<String> pathSupplier, BiConsumer<io.opentelemetry.api.common.AttributeKey<String>, String> attributeSetter) Resolves an exact server.address match first, then falls back to matching server.address as a host together with the separately supplied port and path.
-