From 617977d23601ef6f8f339df53bf6d147505752d8 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace <51025924+simsurace@users.noreply.github.com> Date: Mon, 27 Apr 2026 00:13:27 +0200 Subject: [PATCH] Improve printing of backtrace in log message The output of `catch_backtrace()` will be shown as raw pointers when being serialized (e.g. when looking at logs in Sentry). This can be avoided by wrapping it in `stacktrace`. --- .../otlp/proto/http/src/OpenTelemetryExporterOtlpProtoHttp.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exporter/otlp/proto/http/src/OpenTelemetryExporterOtlpProtoHttp.jl b/src/exporter/otlp/proto/http/src/OpenTelemetryExporterOtlpProtoHttp.jl index bc82f61..bacfaac 100644 --- a/src/exporter/otlp/proto/http/src/OpenTelemetryExporterOtlpProtoHttp.jl +++ b/src/exporter/otlp/proto/http/src/OpenTelemetryExporterOtlpProtoHttp.jl @@ -95,7 +95,7 @@ function SDK.export!(x::OtlpHttpExporter{Req,Resp}, batch::Union{AbstractVector, @error( "Error in OtlpHttpExporter, the attempted batch export failed and will not be retried anymore. " * "The batch will not be returned to the queue either.", - exception=(ex, catch_backtrace()) + exception=(ex, stacktrace(catch_backtrace())) ) return SDK.EXPORT_FAILURE end