feat(data-collection): Request data collection - #3030
Conversation
84ceec2 to
e36c648
Compare
ceb85b7 to
6a366a2
Compare
f50f49d to
5543891
Compare
134f992 to
a3638b2
Compare
a3638b2 to
1202c30
Compare
1202c30 to
e12f4a2
Compare
a207aae to
831da33
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 831da33. Configure here.
f1e317b to
b6161d4
Compare
b6161d4 to
612525c
Compare
Co-Authored-By: OpenAI <noreply@example.com>
612525c to
bdfab90
Compare
4d4eaa4 to
bdfab90
Compare
|
|
||
| # Filters key-value data using the default sensitive denylist. | ||
| def self.filter(values) | ||
| KeyValueCollection.new(mode: :deny_list, terms: nil).filter(values) |
There was a problem hiding this comment.
I'd memoize this, no need to keep creating the same instance all over again.
def self.filter(values)
default_filter.filter(values)
end
def self.default_filter
@default_filter ||= KeyValueColletion.new(mode: :deny_list, terms: nil)
end| collection.terms = ["USER"] | ||
|
|
||
| expect(collection.filter("user_id" => "1")).to eq("user_id" => "[Filtered]") | ||
| expect(collection.filter({ "user_id" => "1" })).to eq("user_id" => "[Filtered]") |
There was a problem hiding this comment.
What was wrong with the implicit form? 🤔
There was a problem hiding this comment.
jruby bug with kwargs
| headers: { 'Host' => 'localhost', "X-Forwarded-For" => "1.1.1.1, 2.2.2.2", "X-Request-Id" => "abcd-1234-abcd-1234" }, | ||
| method: 'POST', | ||
| query_string: 'biz=baz', | ||
| query_string: { 'biz' => 'baz' }, |
There was a problem hiding this comment.
Wait, this is no longer a string - is this correct?
There was a problem hiding this comment.
yes, I will test through with the product, but since relay would've parsed it either way, behavior should remain the same eventually (except for before_send which we will call out in the changelog)

PII_HEADER_SNIPPETSto backfilldata_collection.http_headers.requestfor ip address collection (bothenvandrequest)data_collection.cookiesfor cookie collection (fixHashsignature since it always was one)data_collection.url_query_paramsfor query string and parse query intoHashand filterdata_collection.http_bodiesfor bodyrack_env_whitelist, will be removed in majorIssues
data_collection#3003