Skip to content

Commit

Permalink
Update lib/datadog/tracing/contrib/graphql/unified_trace.rb
Browse files Browse the repository at this point in the history
Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
  • Loading branch information
marcotc and datadog-datadog-prod-us1[bot] authored Jan 18, 2025
1 parent 418a657 commit 9431f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/graphql/unified_trace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def trace(callable, trace_key, resource, before = nil, after = nil, **kwargs, &b
Contrib::Analytics.set_sample_rate(span, config[:analytics_sample_rate])
end

if before_callable = before || before_block
if (before_callable = before || before_block)
before_callable.call(span)
end

Expand Down

0 comments on commit 9431f20

Please sign in to comment.