Skip to content

Commit

Permalink
Minor adjustment of argument order.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jun 25, 2023
1 parent b26cab1 commit 7381e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/traces/backend/datadog/interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module Traces
module Backend
module Datadog
module Interface
def trace(name, attributes: {}, resource: nil, &block)
::Datadog::Tracing.trace(name, tags: attributes, resource: resource, &block)
def trace(name, resource: nil, attributes: {}, &block)
::Datadog::Tracing.trace(name, resource: resource, tags: attributes, &block)
end

def trace_context=(context)
Expand All @@ -24,7 +24,7 @@ def trace_context=(context)
span_id: context.parent_id.to_i,
trace_sampling_priority: context.sampled? ? 1 : 0,
)

::Datadog::Tracing.continue_trace!(trace_digest)
end
end
Expand Down

0 comments on commit 7381e16

Please sign in to comment.