com.github.kristofa.brave.http.StringServiceNameProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brave-http Show documentation
Show all versions of brave-http Show documentation
Abstraction that makes it easier to implement brave in http clients and servers.
package com.github.kristofa.brave.http;
public class StringServiceNameProvider implements ServiceNameProvider {
private final String serviceName;
public StringServiceNameProvider(String serviceName) {
this.serviceName = serviceName;
}
@Override
public String serviceName(HttpRequest request) {
return serviceName;
}
}