From 41befcb0a9e3c1259e53c179176a769acbcea757 Mon Sep 17 00:00:00 2001 From: Marc Delagrammatikas Date: Fri, 8 Mar 2024 18:03:13 -0800 Subject: [PATCH] v1.4.11 --- CHANGELOG.md | 6 ++++++ mix.exs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3b0b2e..e8ee7b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # OpenTelemetryDecorator +## v1.4.11 +Clean up after ourselves instead of right before setting the status + +I didn't realize `Span.end_span` does _not_ change the current span, which is why when the parent catches the reraise it had the wrong span as the current span. +We're starting the span in a place where we can hold on to it so we can manually update the current span to the parent so that callers that _aren't_ using the decorator have the correct current span. + ## v1.4.10 Addresses an issue setting error status on parent spans after exception diff --git a/mix.exs b/mix.exs index 8029c0a..1d07d75 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule OpenTelemetryDecorator.MixProject do use Mix.Project - @version "1.4.10" + @version "1.4.11" @github_page "https://github.com/marcdel/open_telemetry_decorator" def project do