Skip to content

Commit 9377507

Browse files
chore(billing-platform): Log response in service method wrapper (#115246)
1 parent 4c669d7 commit 9377507

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/sentry/billing/platform/core/service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from collections.abc import Callable
77
from typing import Any, TypeVar
88

9+
from google.protobuf.json_format import MessageToDict
910
from google.protobuf.message import Message
1011

1112
from sentry.utils import metrics
@@ -120,6 +121,7 @@ def wrapper(self: BillingService, request: T) -> R:
120121
extra={
121122
"duration_ms": duration_ms,
122123
"response_type": type(result).__name__,
124+
"response": MessageToDict(result),
123125
**extras,
124126
},
125127
)

0 commit comments

Comments
 (0)