Skip to content

Commit

Permalink
Use string keys instead of symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Olichwirowicz committed Jul 27, 2023
1 parent ef4adf9 commit 9f100f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/activejob/traceable/traceable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/activejob/traceable/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module ActiveJob
module Traceable
VERSION = '0.4.1'
VERSION = '0.4.2'
end
end

0 comments on commit 9f100f0

Please sign in to comment.