Skip to content

Commit

Permalink
Update metrics_sdk/lib/opentelemetry/sdk/metrics/instrument/gauge.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com>
  • Loading branch information
xuan-cao-swi and kaylareopelle committed Sep 19, 2024
1 parent 80ebbf8 commit d7e6b54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def instrument_kind
# Values must be non-nil and (array of) string, boolean or numeric type.
# Array values must not contain nil elements and all elements must be of
# the same basic type (string, numeric, boolean).
def record(amount, attributes: {})
def record(value, attributes: {})
# TODO: When the metrics SDK stabilizes and is merged into the main SDK,
# we can leverage the SDK Internal validation classes to enforce this:
# https://github.com/open-telemetry/opentelemetry-ruby/blob/6bec625ef49004f364457c26263df421526b60d6/sdk/lib/opentelemetry/sdk/internal.rb#L47
Expand Down

0 comments on commit d7e6b54

Please sign in to comment.