From 9f100f0f7d2a8478c984fba846b3f957811b4cbf Mon Sep 17 00:00:00 2001 From: Marcin Olichwirowicz Date: Thu, 27 Jul 2023 15:39:02 +0200 Subject: [PATCH] Use string keys instead of symbols --- lib/activejob/traceable/traceable.rb | 4 ++-- lib/activejob/traceable/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/activejob/traceable/traceable.rb b/lib/activejob/traceable/traceable.rb index ede0577..a6e7044 100644 --- a/lib/activejob/traceable/traceable.rb +++ b/lib/activejob/traceable/traceable.rb @@ -37,8 +37,8 @@ def deserialize(job_data) def add_telemetry_data! if ENV["OTEL_EXPORTER_OTLP_ENDPOINT"].present? current_span = OpenTelemetry::Trace.current_span - @tracing_info[:trace_id] = current_span.context.trace_id.unpack1("H*") - @tracing_info[:span_id] = current_span.context.span_id.unpack1("H*") + @tracing_info["trace_id"] = current_span.context.trace_id.unpack1("H*") + @tracing_info["span_id"] = current_span.context.span_id.unpack1("H*") end end diff --git a/lib/activejob/traceable/version.rb b/lib/activejob/traceable/version.rb index 2530111..d141796 100644 --- a/lib/activejob/traceable/version.rb +++ b/lib/activejob/traceable/version.rb @@ -2,6 +2,6 @@ module ActiveJob module Traceable - VERSION = '0.4.1' + VERSION = '0.4.2' end end