Here are the examples of the java api lib.Tracing.init() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
6 Examples
19
Source : Publisher.java
with Apache License 2.0
from yurishkuro
with Apache License 2.0
from yurishkuro
public static void main(String[] args) throws Exception {
System.setProperty("dw.server.applicationConnectors[0].port", "8082");
System.setProperty("dw.server.adminConnectors[0].port", "9082");
try (JaegerTracer tracer = Tracing.init("publisher")) {
new Publisher(tracer).run(args);
}
}
19
Source : Hello.java
with Apache License 2.0
from yurishkuro
with Apache License 2.0
from yurishkuro
public static void main(String[] args) {
if (args.length != 2) {
throw new IllegalArgumentException("Expecting two arguments, helloTo and greeting");
}
String helloTo = args[0];
String greeting = args[1];
try (JaegerTracer tracer = Tracing.init("hello-world")) {
new Hello(tracer).sayHello(helloTo, greeting);
}
}
19
Source : Formatter.java
with Apache License 2.0
from yurishkuro
with Apache License 2.0
from yurishkuro
public static void main(String[] args) throws Exception {
System.setProperty("dw.server.applicationConnectors[0].port", "8081");
System.setProperty("dw.server.adminConnectors[0].port", "9081");
try (JaegerTracer tracer = Tracing.init("formatter")) {
new Formatter(tracer).run(args);
}
}
19
Source : Hello.java
with Apache License 2.0
from yurishkuro
with Apache License 2.0
from yurishkuro
public static void main(String[] args) {
if (args.length != 1) {
throw new IllegalArgumentException("Expecting one argument");
}
String helloTo = args[0];
try (JaegerTracer tracer = Tracing.init("hello-world")) {
new Hello(tracer).sayHello(helloTo);
}
}
19
Source : HelloManual.java
with Apache License 2.0
from yurishkuro
with Apache License 2.0
from yurishkuro
public static void main(String[] args) {
if (args.length != 1) {
throw new IllegalArgumentException("Expecting one argument");
}
String helloTo = args[0];
try (JaegerTracer tracer = Tracing.init("hello-world")) {
new HelloManual(tracer).sayHello(helloTo);
}
}
19
Source : HelloActive.java
with Apache License 2.0
from yurishkuro
with Apache License 2.0
from yurishkuro
public static void main(String[] args) {
if (args.length != 1) {
throw new IllegalArgumentException("Expecting one argument");
}
String helloTo = args[0];
try (JaegerTracer tracer = Tracing.init("hello-world")) {
new HelloActive(tracer).sayHello(helloTo);
}
}