Skip to content

Commit

Permalink
feat: Use nil instead of {} as advice default
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Aug 26, 2024
1 parent b9e8d37 commit 0a474ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics_api/lib/opentelemetry/metrics/meter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def create_counter(name, unit: nil, description: nil)
create_instrument(:counter, name, unit, description, nil) { COUNTER }
end

def create_histogram(name, unit: nil, description: nil, advice: {})
def create_histogram(name, unit: nil, description: nil, advice: nil)
create_instrument(:histogram, name, unit, description, nil, advice) { HISTOGRAM }
end

Expand Down

0 comments on commit 0a474ef

Please sign in to comment.