-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
docs(sdk): Add queue arguments configuration to data collection spec #18637
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,12 +2,15 @@ | |
| title: Data Collection | ||
| description: Configuration for what data SDKs collect by default, including technical context, PII, and sensitive data. | ||
| spec_id: sdk/foundations/client/data-collection | ||
| spec_version: 0.6.0 | ||
| spec_version: 0.7.0 | ||
| spec_status: candidate | ||
| spec_depends_on: | ||
| - id: sdk/foundations/client | ||
| version: ">=1.0.0" | ||
| spec_changelog: | ||
| - version: 0.7.0 | ||
| date: 2026-07-03 | ||
| summary: Include configuration for queue arguments. | ||
| - version: 0.6.0 | ||
| date: 2026-06-29 | ||
| summary: Include configuration for database queries. | ||
|
|
@@ -77,6 +80,7 @@ Personally Identifiable Information (PII) or user-linked data. Examples include, | |
| - IP address | ||
| - Cookies and headers that identify the user or session | ||
| - HTTP request data or database query parameters (TBD) | ||
| - Arguments passed to tasks within a queue | ||
|
|
||
| For context types that may carry PII fields (e.g. `device_unique_identifier` in [Device Context](/sdk/foundations/transport/event-payloads/contexts/#device-context), or fields in the [User Interface](/sdk/foundations/transport/event-payloads/user/)), see the linked specs. | ||
|
|
||
|
|
@@ -543,6 +547,9 @@ init({ | |
| database?: { | ||
| queryParams?: boolean // default: true | ||
| }, | ||
| queues?: { | ||
| taskArguments?: boolean // default: true | ||
| }, | ||
| stackFrameVariables?: boolean, // default: true | ||
| frameContextLines?: integer, // default: 5 (see boolean fallback below) | ||
| }, | ||
|
|
@@ -559,6 +566,7 @@ init({ | |
| | `graphql` | `{ document?, variables? }` | Both `true` | 0.5.0 | For `document`: Collect the GraphQL document. <br /><br /> For `variables`: Collect the variables that are passed to GraphQL operations. | | ||
| | `genAI` | `{ inputs?, outputs? }` | Both `true` | 0.1.0 | For `inputs`: Include the content of generative AI inputs (e.g. prompt text, tool call arguments). <br /><br /> For `outputs`: Include the content of generative AI outputs (e.g. completion text, tool call results). Metadata such as model name and token counts is always collected regardless of these settings. | | ||
| | `database` | `{ queryParams? }` | `true` | 0.6.0 | Include parameters/arguments passed to database queries. Setting this to false will either omit the value altogether, or replace the value with '[Filtered]'. | | ||
| | `queues` | `{ taskArguments? }` | `true` | 0.7.0 | Include arguments passed to tasks within queues. Setting this to false will replace the value with '[Filtered]'. | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The documentation for Suggested FixAlign the behavior description for Prompt for AI Agent |
||
| | `stackFrameVariables` | Boolean | `true` | 0.1.0 | Include local variable values captured within stack frames. | | ||
| | `frameContextLines` | Integer (`Boolean` fallback) | `5` (`true`) | 0.1.0 | Number of source code lines to include above and below each stack frame. <br/> **`Boolean` fallback:** Not all platforms support integer configuration values. SDKs **MAY** accept a boolean, where `true` is equivalent to the platform default (typically `5`) and `false` is equivalent to `0` (no context lines). SDKs **SHOULD** prefer accepting an integer when their platform supports it. | | ||
|
|
||
|
|
@@ -665,6 +673,9 @@ init({ | |
| database: { | ||
| queryParams: false, | ||
| }, | ||
| queues?: { | ||
| taskArguments?: false // default: true | ||
| }, | ||
|
sentry[bot] marked this conversation as resolved.
Outdated
|
||
| httpHeaders: { deny: ["forwarded", "-ip", "remote-", "via", "-user"] }, | ||
| cookies: { deny: ["forwarded", "-ip", "remote-", "via", "-user"] }, | ||
| queryParams: { deny: ["forwarded", "-ip", "remote-", "via", "-user"] }, | ||
|
|
||
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.
Putting this in a dict may be overkill - can we foresee any other data collection controls we may want to add in the context of queues? If it's just task arguments I can update this to just be a boolean