API disparity: No equivalent to ReactNative/Browser SDK's setAccount({id, name}) in Go SDK #4384
awartoft
started this conversation in
Feature Request
Replies: 1 comment
-
|
@awartoft Thanks for reaching out. Let us check this closely. We'll come back soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package Name
No response
Package Version(s)
No response
Describe the feature you'd like
The Browser RUM SDK (v6.26.0) has a setAccount() API for tracking organization/account context:
datadogRum.setAccount({
id: 'organization-uuid',
name: 'Acme Corp'
});
This gives you structured account.id and account.name attributes in Datadog.
The Go SDK only has WithUserOrg(org string) which takes a single string:
tracer.SetUser(span, userID,
tracer.WithUserOrg("Acme Corp"), // can't set ID and name separately
)
For multi-tenant apps trying to correlate frontend RUM with backend APM traces by organization, this is a problem. The frontend has
proper account context, the backend doesn't.
Environment
Is your feature request related to a problem?
No response
Describe alternatives you've considered
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions