Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public API method for adding resource attributes #24

Closed
wnstn opened this issue Jan 19, 2024 · 0 comments
Closed

Public API method for adding resource attributes #24

wnstn opened this issue Jan 19, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@wnstn
Copy link
Contributor

wnstn commented Jan 19, 2024

Is your feature request related to a problem? Please describe.
One of the big differentiators for Honeycomb RUM vs other RUM products is our support for wide-data. This will allow users to filter down metrics to the constraints they care about (customers, users, page route owners, etc). Since we will be selling this as a key benefit, we should make it really easy to add attributes that help with that via resource attributes.

Describe the solution you'd like
Ideally a customer can import a method into whatever file has the info they want to attach to all spans and pass in a JS object to that method, and our SDK takes care of attaching all K/Vs in the object as resource attributes.

In an even more ideal world, there's a way to delay span processing until all resource attributes are present, so that devs can attach the attributes they need even if they are not available at the point of SDK instantiation.

Describe alternatives you've considered
N/A

Additional context
I think I've covered everything here, but this request is mostly making sure we think about the DevEx of this common usage pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants