Skip to content

Commit

Permalink
Append tags to existing tags to keep the default ones
Browse files Browse the repository at this point in the history
  • Loading branch information
nhhagen committed Dec 16, 2024
1 parent 711da4f commit c0b5302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func resolveOptions(opts []Option) (*options, error) {
// statsd.WithTags()
func WithTags(tags ...string) Option {
return func(options *options) error {
options.tags = tags
options.tags = append(options.tags, tags...)
return nil
}
}
Expand Down

0 comments on commit c0b5302

Please sign in to comment.