What can OpenTelemetry do for me?
OTel has broad industry support and adoption from cloud providers, vendors and end users. It provides you with:
With support for a variety of open source and commercial protocols, format and context propagation mechanisms as well as providing shims to the OpenTracing and OpenCensus projects, it is easy to adopt OpenTelemetry.
What OpenTelemetry is not
OpenTelemetry is not an observability back-end like Jaeger or Prometheus. Instead, it supports exporting data to a variety of open source and commercial back-ends. It provides a pluggable architecture so additional technology protocols and formats can be easily added.
testImplementation("io.zonky.test:embedded-postgres:1.2.5")
testRuntimeOnly enforcedPlatform("io.zonky.test.postgres:embedded-postgres-binaries-bom:12.2.0")
Especificando a versao que sera feito o release
./gradlew release -Prelease.releaseVersion=2.7.0
Configurando o gradle
confirmReleaseVersion.doLast {
println "> upgrading docker-compose version=${project.version}"
updateVersion("${project.projectDir}/docker-compose.yml", "(image:.*:)(.*)", "\$1${project.version}")
def sout = new StringBuilder()
def proc = ['git', 'commit', '-a', "-m [Gradle Release Plugin] - releasing '${project.version}'."].execute()
proc.consumeProcessOutput(sout, sout)
proc.waitForOrKill(3000)
println "> $sout"
}
void updateVersion(f, pattern, replace){
f = file(f)
println "> updating version in: ${f}"
if(!f.exists()){
println "file ${f} not found"
System.exit(-1)
}
f.write(f.text.replaceAll(pattern, replace))
}
Exemplos
// DockerClient setup
DockerClientConfig dockerClientConfig = DefaultDockerClientConfig.createDefaultConfigBuilder()
.withDockerHost("tcp://localhost:2375")
.withApiVersion("1.40")
.withDockerTlsVerify(false)
.build();
DockerClient dockerClient = DockerClientImpl.getInstance(dockerClientConfig)
.withDockerCmdExecFactory(new NettyDockerCmdExecFactory());
// Running in a seperate Thread
ResultCallback<Event> callback = new ResultCallback<Event>() {
@Override
public void onStart(Closeable closeable) {
}
@Override
public void onError(Throwable throwable) {
System.err.println("Error " + throwable);
}
@Override
public void onComplete() {
}
@Override
public void close() throws IOException {
System.out.println("Closing Eventhandler");
}
@Override
public void onNext(Event item) {
System.out.println("Event: Event");
}
};
this.dockerClient.eventsCmd().exec(callback);
demos commands, demo commands, java commands, java examples, java bookmarks, java awesome