Telemetry without the Tool Tax

A presentation at Infobip Shift in September 2022 in Zadar, Croatia by Ben Greenberg

Slide 1

Slide 1

TELEMETRY WITHOUT THE TOOL TAX Ben Greenberg @rabbigreenberg

Slide 2

Slide 2

Once upon a time… @rabbigreenberg

Slide 3

Slide 3

@rabbigreenberg

Slide 4

Slide 4

Web development was simpler @rabbigreenberg

Slide 5

Slide 5

What happened? �� @rabbigreenberg

Slide 6

Slide 6

Distributed Architecture @rabbigreenberg Containerization Kubernetes Five Nines

Slide 7

Slide 7

As complexity grows, so does the ecosystem to support it @rabbigreenberg

Slide 8

Slide 8

Maybe you have a similar story to my own? @rabbigreenberg

Slide 9

Slide 9

Hi, my name is Ben Software Developer @rabbigreenberg

Slide 10

Slide 10

I write code @rabbigreenberg

Slide 11

Slide 11

Sometimes, I even write tests @rabbigreenberg

Slide 12

Slide 12

Then one day, something happened… @rabbigreenberg

Slide 13

Slide 13

I discovered Observability was useful �� @rabbigreenberg

Slide 14

Slide 14

But, there’s a lot of tooling out there How do you choose? @rabbigreenberg

Slide 15

Slide 15

3/17 OpenTelemetry is a response to tooling overload and vendor lock-in @rabbigreenberg

Slide 16

Slide 16

Gain critical visibility into your app with one dependency �� @rabbigreenberg

Slide 17

Slide 17

HOW DID IT ALL GET STARTED? The origin story of OTel

Slide 18

Slide 18

The Telemetry Reality: Agents Divided instrumentation APIS SDKs @rabbigreenberg Protocols Collectors

Slide 19

Slide 19

The evolution of the project OpenTracing OpenCensus OpenTelemetry @rabbigreenberg

Slide 20

Slide 20

2015 A vendor neutral standard and set of APIs to trace across microservices @rabbigreenberg @rabbigreenberg

Slide 21

Slide 21

2017 @rabbigreenberg Collect metrics and traces and send to any backend of your choice

Slide 22

Slide 22

2019 @rabbigreenberg A unified point to integrate metrics and traces across all surfaces

Slide 23

Slide 23

2021 @rabbigreenberg v1.0.0 released of the specification

Slide 24

Slide 24

The OTel Perspective: United Instrumentation Metrics Logs Traces @rabbigreenberg

Slide 25

Slide 25

Open standards decrease complexity @rabbigreenberg

Slide 26

Slide 26

HOW DOES IT WORK?

Slide 27

Slide 27

This is your application Construct metric data without concern if it gets consumed by an OTel agent or not This is the OTel API layer The instrumentation layer by language Processor and exporter of the telemetry data https://newrelic.com/blog/best-practices/opentelemetry-concepts @rabbigreenberg

Slide 28

Slide 28

Breaking down the OTel Collector Receiver Accepts telemetry data Processor Exporter Pipeline to process Send the data to a the data backend of your choice (i.e. filter, sample and Formats the telemetry Popular library OTLP (OTel Protocol) Receiver enrich the data) data for the requirements of the chosen backend @rabbigreenberg

Slide 29

Slide 29

TRACES AND METRICS What’s the difference?

Slide 30

Slide 30

Traces 01 Trace is a single request in the system Capturing a Single Request 02 03 @rabbigreenberg Span is a single component of a trace Traces are trees of spans

Slide 31

Slide 31

Metrics 01 Metrics are aggregated measurements Capturing data over time 02 03 @rabbigreenberg Metric data captures a moment in time Metrics are less detailed than traces

Slide 32

Slide 32

Example of Trace API Implementation https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/exceptions.md @rabbigreenberg

Slide 33

Slide 33

Example of Metrics API Implementation https://opentelemetry.io/docs/instrumentation/java/manual/ @rabbigreenberg

Slide 34

Slide 34

WHAT TO DO WITH YOUR DATA What happens after you collect?

Slide 35

Slide 35

The new golden rule: Your data is yours @rabbigreenberg

Slide 36

Slide 36

Build Your Own Observability Backend @rabbigreenberg

Slide 37

Slide 37

Uniform specs make building your own backend possible �� @rabbigreenberg

Slide 38

Slide 38

Bring your data to the vendor of your choice @rabbigreenberg

Slide 39

Slide 39

Vendors that support OpenTelemetry @rabbigreenberg

Slide 40

Slide 40

WHY DOES THIS MATTER?

Slide 41

Slide 41

“Tool proliferation Aleksey Vorona InformationWeek remains of the challenging double-edged swords facing DevOps-minded @rabbigreenberg teams.”

Slide 42

Slide 42

“… the DevOps space is Nana Janashia Techworld with nana developing really fast and we see new technologies, new concepts emerging all the time, so many engineers feel pressure to learn new tools to use in their projects.” @rabbigreenberg

Slide 43

Slide 43

OPENTELEMETRY PROVIDES YOU WITH THE DATA YOU NEED…

Slide 44

Slide 44

Without The Tool Tax @rabbigreenberg

Slide 45

Slide 45

THANK YOU! @rabbigreenberg