1
Observable microservices with MicroProfile OpenTracing and looking beyond to OpenTelemetry
Pavol Loffay Senior Software Engineer
OPTIONAL SECTION MARKER OR TITLE
Observable microservices with MicroProfile OpenTracing and - - PowerPoint PPT Presentation
OPTIONAL SECTION MARKER OR TITLE Observable microservices with MicroProfile OpenTracing and looking beyond to OpenTelemetry Pavol Loffay Senior Software Engineer 1 Agenda Introduction to distributed tracing MicroProfile-OpenTracing
1
Pavol Loffay Senior Software Engineer
OPTIONAL SECTION MARKER OR TITLE
2
3
4
5
CORPORATE SLIDE TEMPLATES
6
7
8
Metrics - no context, which request caused a spike? Logs - hard to correlate, parallel requests, multiple hosts.
9
10
11
A B C D E
{context} {context} {context} {context} TraceID → {context}
A B E C D time TRACE SPANS
12
13
14
15
@Path("/") public class Handler { @GET @Path("/hello") public Response hello() { Response response = client .target("http://localhost:8090/api") .request() .get(); String entity = response.readEntity(String.class); response.close(); return Response.ok(entity).build(); } }
16
@Path("/") public class Handler { @Inject private io.opentracing.Tracer tracer; @GET @Path("/hello") @Traced(operationName = "bonjour") public Response hello() { return Response.ok().build(); } @GET @Path("/ping") @Traced(false) public Response ping() { return Response.ok().build(); } }
17
○ GET:foo.bar.UserHandler.getUser ○ /user/{id}
○ /health|/foo/bar*
18
19
20
21
22
OpenTelemetry.getTracerFactory().getTracer("io.opentelemetry.contrib.mongodb", "semver:1.0.0");
23
24
25
linkedin.com/company/red-hat youtube.com/user/RedHatVideos facebook.com/redhatinc twitter.com/RedHat
26
Red Hat is the world’s leading provider of enterprise
training, and consulting services make Red Hat a trusted adviser to the Fortune 500.
OPTIONAL SECTION MARKER OR TITLE