No video

Software Architecture in Golang: Structured Logging using slog (Observability)

  Рет қаралды 7,276

Mario Carrion

Mario Carrion

Күн бұрын

Пікірлер: 17
@fabricioaraujo7642
@fabricioaraujo7642 Жыл бұрын
Thanks for the content mario, i really would be like if could bring something about hexagonal architecture but in the go way code :)
@MarioCarrion
@MarioCarrion Жыл бұрын
The "Building Microservices in Golang/Go" playlist explains it kzbin.info/aero/PL7yAAGMOat_Fn8sAXIk0WyBfK_sT1pohu here's the code github.com/MarioCarrion/todo-api-microservice-example It's not explicitly called "adapters" or "ports" in the packages because I don't think that's idiomatic Go.
@xbz24
@xbz24 Жыл бұрын
We love your content mario, keep it up
@MarioCarrion
@MarioCarrion Жыл бұрын
Thanks for the support! Take care
@prashlovessamosa
@prashlovessamosa 7 ай бұрын
Thanks Mario
@MarioCarrion
@MarioCarrion 7 ай бұрын
Thanks for watching!
@Hidarikikino
@Hidarikikino Жыл бұрын
Hi Mario! Interesting video. Are there any alternatives available for slog? Btw what’s the tool do you using for selection on screen with colour rectangles?
@MarioCarrion
@MarioCarrion Жыл бұрын
Hey! zap is still around, they share the same ideas. The tool I'm using is called presentify.
@benisrood
@benisrood Жыл бұрын
We use zap, it works well.
@MrSparc
@MrSparc 9 ай бұрын
A question: Why not just use OpenTelemetry Logs instead using another framework for handling logs? I don't know if OpenTelemetry SDK for Go already implemented the Logs specification as C++ or .NET implementations. I use Otel span events for structured logs data related to a trace span and Otel Logs for unstructured logs that are related to a span
@MarioCarrion
@MarioCarrion 9 ай бұрын
To date (Nov 14, 2023) according to the docs (opentelemetry.io/docs/instrumentation/go/) the logs are not implemented yet, but what you're saying makes sense; so I assume eventually when the logs are implemented I can see them using slog behind the scenes.
@pbznt
@pbznt Жыл бұрын
Would you reccomend using Slog in production? In case it becomes part of the standard library, will my code break?
@MarioCarrion
@MarioCarrion Жыл бұрын
Although this is approved, I consider this as an experimental change... so I will be cautious because things may change between what was approved and what really gets into the standard library. With that being said, what I would do is to have a branch with the slog changes, do my best to have it up to date it with recent changes to get it ready for the final release.
@pbznt
@pbznt Жыл бұрын
@@MarioCarrion Thanks! Do you have any idea when the official slog package will be released in the standard library?
@MarioCarrion
@MarioCarrion Жыл бұрын
@@pbznt Nothing has been announced officially, but my guess is that either next release or one after.
@hakooplayplay3212
@hakooplayplay3212 Жыл бұрын
Now its in stdlib for Go 1.21
@loshermanos205
@loshermanos205 11 ай бұрын
😢 Hablas Inglés
Validating Protocol Buffers in Golang gRPC Tutorial
7:06
Mario Carrion
Рет қаралды 2,3 М.
Structured Logging In Go Using Standard Library- Slogslog
27:56
ProgrammingPercy
Рет қаралды 3,8 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 53 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 24 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,4 МЛН
Learning Golang: Dependencies, Modules and How to manage Packages
16:45
Golang Microservices: Observability using OpenTelemetry
21:46
Mario Carrion
Рет қаралды 12 М.
Log Levels Explained (with practical examples!)
25:39
Better Stack
Рет қаралды 1,5 М.
Golang 1.20: What is new?
11:16
Mario Carrion
Рет қаралды 9 М.
This Will Make Everyone Understand Golang Interfaces
21:03
Anthony GG
Рет қаралды 49 М.
Golang 1.22: What is new?
7:44
Mario Carrion
Рет қаралды 4 М.
Go Structured Logging with the slog Package (Golang)
37:23
Better Stack
Рет қаралды 6 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 25 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10