Take me Down to the Paradise City Where the Metric is Green and Traces are Pretty

A presentation at SRECon 2021 in October 2021 in by Ricardo Ferreira

Slide 1

Slide 1

Take me Down to the Paradise City where the Metric is Green and Traces are Pretty Ricardo Ferreira Principal Developer Advocate, Elastic

Slide 2

Slide 2

Who am I? • Principal Developer 🥑 at Elastic • Community, Developer Relations • Before Elastic: Confluent, Oracle, Red Hat • Observability, Streaming Systems, Databases, 🧑💻 Java and Golang • https://riferrei.com @riferrei

Slide 3

Slide 3

Agenda • Observability 101, redefined • Overview about OpenTelemetry • Creating an observability backend • Example of instrumented app in Java • Example of instrumented app in Go

Slide 4

Slide 4

Current perception about observability Where When What Tools + Processes + People Tools + Processes + People Tools + Processes + People Logging Metrics Tracing

Slide 5

Slide 5

“…this seems like calling ‘gasoline, motor oil, and tires’ the 3 pillars of F1 racing. It is not wrong, precisely, but…” Josh Berkus Kubernetes Community Manager, Red Hat

Slide 6

Slide 6

Observability redefined: pipes (not pillars) Request-scoped metrics Metrics Aggregatable Tracing Aggregatable events Request Scoped Logging Events Request-scoped events Request-scoped contextual View

Slide 7

Slide 7

Overview about OpenTelemetry https://opentelemetry.io

Slide 8

Slide 8

• Based on the projects OpenTracing and OpenCensus • Open source CNCF project • Provides specification, protocols, SDK, and integration tools • Unifying all types of telemetry data: traces, metrics, and logs • Vibrant growing community

Slide 9

Slide 9

Different deployment topologies

Slide 10

Slide 10

Is OpenTelemetry stable enough?

Slide 11

Slide 11

• Traces are GA and programming OpenTelemetry Stability languages are mostly up to speed • Metrics are almost GA and programming languages are mostly up to speed • Instrumentation libraries are popping up every single week. Help to accelerate this. • Logs are not ready. But you can use the collector for most things log-related. • TL;DR: yes… start using OpenTelemetry

Slide 12

Slide 12

Time to see some hands-on stuff

Slide 13

Slide 13

Creating a observability backend Microservice OTel Collector Microservice ?

Slide 14

Slide 14

Creating a observability backend Microservice OTel Collector Microservice Elastic Observability

Slide 15

Slide 15

Get started with Elastic for free today! Try now: cloud.elastic.co/registration

Slide 16

Slide 16

Example of instrumented app in Java Microservice OTel Collector Elastic Observability https://github.com/riferrei/otel-with-java

Slide 17

Slide 17

Example of instrumented app in Go Microservice OTel Collector Elastic Observability https://github.com/riferrei/otel-with-golang

Slide 18

Slide 18

How to find me? Follow me: @riferrei YouTube Channel: videos.riferrei.com Previous talks: talks.riferrei.com

Slide 19

Slide 19

Thank You