- Avoid host lookups if trace tags have already been provided (#371) <Christopher Hunt>
- Update the ReporterConfig to set Sender Correctly (#370) <Nate Hart>
- Fix for issue 366, fix deprecated code in example (#367) <Kevin Earls>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ReporterConfiguration reporterConfiguration = new ReporterConfiguration( | |
new Configuration.SenderConfiguration.Builder() | |
.endpoint("https://jaeger-collector:14268/api/traces") | |
.build() | |
.getSender() | |
); | |
Configuration configuration = new Configuration("service-name", SamplerConfiguration.fromEnv(), reporterConfiguration); | |
io.opentracing.Tracer tracer = configuration.getTracer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration configuration = Configuration.builder("service-name") | |
.withCollectorEndpoint("https://jaeger-collector-custom:14268/api/traces") | |
.build(); | |
io.opentracing.Tracer tracer = configuration.getTracer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration | |
.builder("service-name") | |
.withReporterConfiguration( | |
ReporterConfiguration.builder() | |
.withSenderConfiguration( | |
Configuration.SenderConfiguration.builder() | |
.endpoint("https://jaeger-collector:14268/api/traces") | |
.build() | |
) | |
.build() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration | |
.builder("a-name") | |
.withSenderConfiguration( | |
Configuration.SenderConfiguration.builder() | |
.endpoint("https://jaeger-collector:14268/api/traces") | |
.build() | |
) | |
.build(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration | |
.builder("a-name") | |
.reporter() | |
.sender() | |
.endpoint("https://jaeger-collector:14268/api/traces") | |
.build() | |
.build() | |
.build() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.vertx.starter; | |
import com.uber.jaeger.Configuration; | |
import com.uber.jaeger.micrometer.MicrometerMetricsFactory; | |
import com.uber.jaeger.samplers.ConstSampler; | |
import io.micrometer.core.instrument.Metrics; | |
import io.micrometer.prometheus.PrometheusConfig; | |
import io.micrometer.prometheus.PrometheusMeterRegistry; | |
import io.opentracing.Span; | |
import io.opentracing.Tracer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
scrape_interval: 15s # By default, scrape targets every 15 seconds. | |
scrape_configs: | |
- job_name: 'app-using-jaeger-java-client' | |
scrape_interval: 5s | |
static_configs: | |
- targets: ['localhost:8081'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'application' | |
id 'com.github.johnrengelman.shadow' version '2.0.1' | |
} | |
repositories { | |
mavenLocal() | |
jcenter() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.uber.jaeger.Configuration; | |
import com.uber.jaeger.Tracer; | |
import com.uber.jaeger.samplers.ConstSampler; | |
import javax.inject.Provider; | |
public class TracerProvider implements Provider<Tracer> { | |
@Override | |
public Tracer get() { |