Skip to content

Commit 06e5c7d

Browse files
sl0thentr0pysolnic
andauthored
Update sentry-opentelemetry/lib/sentry/opentelemetry/otlp_propagator.rb
Co-authored-by: Peter Solnica <peter@solnica.online>
1 parent 67e3545 commit 06e5c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry-opentelemetry/lib/sentry/opentelemetry/otlp_propagator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def inject(
1818
baggage = context[SENTRY_BAGGAGE_KEY]
1919
if baggage.is_a?(Sentry::Baggage)
2020
baggage_string = baggage.serialize
21-
setter.set(carrier, BAGGAGE_HEADER_NAME, baggage_string) if baggage_string && !baggage_string.empty?
21+
setter.set(carrier, BAGGAGE_HEADER_NAME, baggage_string) unless baggage_string&.empty?
2222
end
2323
end
2424
end

0 commit comments

Comments
 (0)