Skip to content

Commit

Permalink
Fixed checkstyle issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-langer committed Oct 2, 2018
1 parent 4044f5a commit 8396baf
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ public ZipkinTracerBuilder path(String path) {
return this;
}

/**
* Create a new builder based on values in configuration.
* This requires at least a key "service" in the provided config.
*
* @param config configuration to load this builder from
* @return a new builder instance.
* @see ZipkinTracerBuilder#fromConfig(Config)
*/
public static ZipkinTracerBuilder from(Config config) {
String serviceName = config.get("service").value()
.orElseThrow(() -> new IllegalArgumentException("Configuration must at least contain the service key"));
Expand Down

0 comments on commit 8396baf

Please sign in to comment.