Sick of Digging Through Logs? Find Errors FAST with OpenTelemetry and Go!
Автор: Better Stack
Загружено: 2025-02-06
Просмотров: 4193
Your logs are lonely. They lack context and correlation, making debugging a nightmare. In this video, I’ll show you how to integrate OpenTelemetry (OTel) with your existing logs to automatically correlate them with metrics and traces. We’ll implement this using Go (Golang) and slog, setting up an OTel collector with Docker and configuring it to send logs to the console, but they could be sent to tools like Prometheus and Grafana. If you want to make your logs truly useful, stick around and let’s get started!
► Check out Better Stack - http://bit.ly/4hmhFxg
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Introduction
01:20 Implementing OpenTelemetry
03:38 Updating the Go Code to Support OTel Logs
07:22 Testing API Calls and Viewing Logs
07:51 Final words
► RELATED VIDS
Bruni - • The BEST API Client - Open-Source & Git-fr...
Slog - • Go's Built-in Package for Better Logging (...
► HACKING SCALE NEWSLETTER
https://newsletter.betterstack.com/
► STAY TUNED
Twitter: / betterstackhq
LinkedIn: / betterstack
Instagram: / betterstackhq
TikTok: / betterstack
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: