Only string arguments allowed for span.addLabels()?

Hi there,

After implementing Elastic RUM for the (Angular) front-end of our single-page-application I wanted to create some custom events to time some of our user clicks. According to the documentation you're able to pass any string, boolean or number with the use of span.addLabels(). Because these would be timed events I was interested in number.

However, when trying to implement the .addLabels() method I noticed that only string arguments are allowed (see screenshots below). Is this correct or am I missing something obvious?

Hi @randy_a ,

The exported types for addLabels argument is incorrect.
I have opened this PR to fix it.

Thanks for reporting this issue,

Thanks @Hamidreza , appreciate the fix!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.