Skip to content

Commit

Permalink
doc(metric): fix incorrect explanation of how metric.WithAttributes
Browse files Browse the repository at this point in the history
… works (#5822)
  • Loading branch information
wzy9607 committed Sep 16, 2024
1 parent 80e18a5 commit 38b9734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metric/instrument.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func WithAttributeSet(attributes attribute.Set) MeasurementOption {
//
// cp := make([]attribute.KeyValue, len(attributes))
// copy(cp, attributes)
// WithAttributes(attribute.NewSet(cp...))
// WithAttributeSet(attribute.NewSet(cp...))
//
// [attribute.NewSet] may modify the passed attributes so this will make a copy
// of attributes before creating a set in order to ensure this function is
Expand Down

0 comments on commit 38b9734

Please sign in to comment.