Skip to content

Commit e8604f2

Browse files
committed
fix(metrics): Dup attributes in capture_metric
1 parent cdab106 commit e8604f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry-ruby/lib/sentry/hub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def capture_metric(name:, type:, value:, unit: nil, attributes: nil)
249249
value: value,
250250
type: type,
251251
unit: unit,
252-
attributes: attributes,
252+
attributes: attributes&.dup,
253253
)
254254

255255
current_client.buffer_metric_event(metric, current_scope)

0 commit comments

Comments
 (0)