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