lib/opentelemetry/sdk/trace/samplers/result.rb in opentelemetry-sdk-1.2.0 vs lib/opentelemetry/sdk/trace/samplers/result.rb in opentelemetry-sdk-1.2.1
- old
+ new
@@ -38,10 +38,10 @@
# @param [Tracestate] tracestate A Tracestate that will be associated
# with the Span through the new SpanContext. If the sampler returns
# an empty Tracestate here, the Tracestate will be cleared, so
# samplers SHOULD normally return the passed-in Tracestate if they
# do not intend to change it.
- def initialize(decision:, attributes: nil, tracestate:)
+ def initialize(decision:, tracestate:, attributes: nil)
@decision = decision
@attributes = attributes.freeze || EMPTY_HASH
@tracestate = tracestate
end