Skip to content

Breaking changes v13 - labels as arguments considered as object #499

Description

@nirapx

Hi,
When I'm setting labels as arguments and the first argument is an array:

someCounter.labels(arr, string1, string2)

it is considered as an object and throws Added label "0" is not included in initial labelset.
I found that there is a condition if (typeof args[0] === 'object') but it might also check that it is not an array.

I've upgraded from v12 to v14 (but it happens in v13 also).

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions