-
-
Notifications
You must be signed in to change notification settings - Fork 476
feat(pii): add data collection for stack frame variables #2194
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -47,7 +47,11 @@ public function setupOnce(): void | |
| return $event; | ||
| } | ||
|
|
||
| $maxContextLines = $client->getOptions()->getContextLines(); | ||
| $options = $client->getOptions(); | ||
| $dataCollection = $options->getDataCollection(); | ||
| $maxContextLines = $dataCollection === null | ||
| ? $options->getContextLines() | ||
| : $dataCollection->getFrameContextLines(); | ||
|
Comment on lines
+50
to
+54
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: When Suggested FixThe logic should respect Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| $integration = $client->getIntegration(self::class); | ||
|
|
||
| if ($integration === null || $maxContextLines === null) { | ||
|
|
||
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.
KeyValueDataFilter::filterKeyValueData()is a recursive function. But$argumentValuescould include recursive arrays, which causesKeyValueDataFilter::filterKeyValueData()to recurse until the memory limit is exceeded.For example: