bugsnag / bugsnag-js-performance

Monitor the performance of your JavaScript (web and React Native) and see the results in your BugSnag dashboard.
https://docs.bugsnag.com/performance/integration-guides
MIT License
5 stars 3 forks source link

Send an attribute when creating custom span #484

Closed alandecastros closed 1 month ago

alandecastros commented 3 months ago

Description

Is it possible to send a attribute when sending a custom span?

I'm using it like this:

const span = BugsnagPerformance.startSpan(`GraphQL - ${operation.operationName}`, { makeCurrentContext: false });
...
span.end()
clr182 commented 3 months ago

Hi @alandecastros

Thanks for reaching out.

We do have an item on our backlog aimed at adding the functionality to add attributes to custom spans. Unfortunately I don't have a clear ETA on the release of this functionality that I can currently share. We will be sure to update this thread when we have more information to share.

hannah-smartbear commented 1 month ago

Hi @alandecastros,

We have now released v2.10.0 of bugsnag-js-performance, which allows you to add attributes to custom spans.

Please let us know if you have any questions about this.