Viewing Span Events in ZincObserve

TLDR Benjamin wants to view span events in ZincObserve more ergonomically. Prabhat suggests adding a function to view all spans for a trace and asks Benjamin to create an issue for it.

Photo of Benjamin
Benjamin
Mon, 29 May 2023 14:33:32 UTC

Hello again- I’m going through OpenTelemetry + ZincObserve tutorials and I added a span event to : ```func GetUserDetails(ctx context.Context) string { _, span := tracer.Start(ctx, "GetUserDetails") defer span.End() span.AddEvent("log", trace.WithAttributes( attribute.String("user", "bbkane"), )) return "Hello User Details from Go microservice" }``` This span event shows up in the `events` view, but not when clicking into a the details of specific event - that just shows the timeline. Is there a good way to view span events in an ergonomic way in ZincObserve? My end goal is to replace logging + tracing with just tracing + span events

Photo of Prabhat
Prabhat
Mon, 29 May 2023 15:38:10 UTC

Just to understand you want to be able to get the span details by clicking on the timeline area. right?

Photo of Prabhat
Prabhat
Mon, 29 May 2023 15:38:50 UTC

we group the timeline by trace, so you don't really see the individual spans in the timeline, but the complete trace

Photo of Prabhat
Prabhat
Mon, 29 May 2023 15:39:26 UTC

also the results in the bottom table are essentially grouped traces

Photo of Prabhat
Prabhat
Mon, 29 May 2023 15:40:22 UTC

we have to add the functionality of being able to see all the spans for the trace by clicking on the trace in the timeline. We will get to it soon.

Photo of Prabhat
Prabhat
Mon, 29 May 2023 15:43:28 UTC

Traces and metrics are in somewhat early stages and will improve drastically in next 1-2 months.

Photo of Benjamin
Benjamin
Mon, 29 May 2023 15:59:18 UTC

> we have to add the functionality of being able to see all the spans for the trace by clicking on the trace in the timeline. We will get to it soon. > Yes I think this is what I want. Thank you! Is there an issue I can track for this feature? A quick search for "span" didn't find one. Happy to make one if you'd like

Photo of Prabhat
Prabhat
Mon, 29 May 2023 22:37:14 UTC

no issue yet, but it would be great if you could create one.