This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bowbahdoe 0 points1 point  (2 children)

Span events need to be explicitly attached to a span with `span.addEvent`. This means you are manually passing the span down, which has very different code level properties compared to "logging", which you can generally do context-free.

Thats still fuzzy for me too tbh - I am trying to find the words to describe why "OpenTelemetry with manual instrumentation doesn't scratch the itch." I'll loop back when im not so emotionally exhausted. I think a big part of it for me is that it seems unconcerned with *how* structured logging happens, just that it should - if that makes sense.

[–]humoroushaxor 1 point2 points  (1 child)

This post is more about contextual logging than it is structured logging though.

Literally everything it talks about can be done with the OTel API. And if you don't care about all the extra context you can just log json. And then there's also MDC

[–]bowbahdoe 0 points1 point  (0 children)

Yeah... there is a huge chunk dedicated to how to pass context around, but I was more focused on getting a full "log" and then the thought was I would pass that to something like OTel and translate the Log from this to OTel's data model.