Skip to content

Commit

Permalink
Set resource earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Mar 8, 2018
1 parent 93f136b commit ac63bd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/adapters/instrumented_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ def trace(resource, _resource_describer = nil)
tracer.trace(span_name) do |span|
span.service = "valkyrie-#{metadata_adapter.class}"
span.span_type = Datadog::Ext::AppTypes::DB
output = yield(span)
span.resource = resource
output
yield(span)
end
end

Expand Down

0 comments on commit ac63bd5

Please sign in to comment.