authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-08 17:28:47 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-08 17:28:47 -07:00
log7837e792dfa9787a64e1d8c0bb6437158b38de25
tree5ec9d342821bc12011aaf8055ef496ee18d55dce
parenta420cb6394c1a660501375a6f0111920a0bbd9b1
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

otel: forgot to reset the parent span id on span end


1 files changed, 1 insertions(+), 0 deletions(-)

src/otel.zig+1
...@@ -178,6 +178,7 @@ pub fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, i...@@ -178,6 +178,7 @@ pub fn trace_begin(src: std.builtin.SourceLocation, comptime ifmt: []const u8, i
178178
179pub fn trace_end(ctx: tracer.Ctx) void {179pub fn trace_end(ctx: tracer.Ctx) void {
180 trace_end_inner(ctx) catch {};180 trace_end_inner(ctx) catch {};
181 prev_span_id = ctx.data.parent_id;
181}182}
182fn trace_end_inner(ctx: tracer.Ctx) !void {183fn trace_end_inner(ctx: tracer.Ctx) !void {
183 var temp: std.ArrayListUnmanaged(u8) = .empty;184 var temp: std.ArrayListUnmanaged(u8) = .empty;