-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Document global attributes #15279
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
Document global attributes #15279
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| "app.feature_flag.enabled": { | ||
| type: "boolean", | ||
| value: true | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO we should allow for an API that allows for the SDK to infer the type for the user. Otherwise this becomes more annoying for the dynamic language sdks.
The attributes API currently in logs doesn't allow for users to specify the type.
|
|
||
| Attributes are key-value pairs where each value is an object containing: | ||
|
|
||
| - `type`: The data type (`"string"`, `"integer"`, `"double"`, or `"boolean"`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can be less strict here. If we allow for more types, we can cast complex types to string and still allow them to be set. I think this makes it an easier API for users to use, and feels very easy to transition from contexts.
d88971a to
c8f9a87
Compare
Bundle ReportChanges will increase total bundle size by 462 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-server-cjsAssets Changed:
view changes for bundle: sentry-docs-client-array-pushAssets Changed:
|
No description provided.