Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/sentry/billing/platform/core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"service": service_name,
"method": method_name,
"request_type": type(request).__name__,
"request": MessageToDict(request),

Check warning on line 91 in src/sentry/billing/platform/core/service.py

View check run for this annotation

@sentry/warden / warden: wrdn-pii

Full billing protobuf request payload logged to durable logger

Adding `MessageToDict(request)` to the log `extra` sends the entire billing request payload—including any customer-specific field values—into durable operational logs on every service method call. For a billing platform, request messages can carry customer usage volumes, quota limits, contract/subscription details, or other account-confidential fields tied to an `organization_id`. Log only the scalar IDs already extracted (`organization_id`, `contract_id`) and drop the full payload serialization.
Comment thread
brendanhsentry marked this conversation as resolved.
}
if organization_id := getattr(request, "organization_id", None):
extras["organization_id"] = organization_id
Expand Down
Loading