Skip to content

Commit cfd92b6

Browse files
committed
rename of property given upcoming change in the spec
1 parent 045fadc commit cfd92b6

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

sentry_sdk/_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class DataCollectionUserOptions(TypedDict, total=False):
186186
query_params: "KeyValueCollectionBehaviour"
187187
graphql: "GraphQLCollectionUserOptions"
188188
gen_ai: "GenAICollectionUserOptions"
189-
database: bool
189+
database_query_data: bool
190190
queues: bool
191191
stack_frame_variables: bool
192192
frame_context_lines: int
@@ -200,7 +200,7 @@ class DataCollection(TypedDict):
200200
query_params: "KeyValueCollectionBehaviour"
201201
graphql: "GraphQLCollectionBehaviour"
202202
gen_ai: "GenAICollectionBehaviour"
203-
database: bool
203+
database_query_data: bool
204204
queues: bool
205205
stack_frame_variables: bool
206206
frame_context_lines: int

sentry_sdk/data_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _map_from_send_default_pii(
106106
"query_params": {"mode": kv_mode, "terms": terms},
107107
"graphql": {"document": send_default_pii, "variables": send_default_pii},
108108
"gen_ai": {"inputs": send_default_pii, "outputs": send_default_pii},
109-
"database": send_default_pii,
109+
"database_query_data": send_default_pii,
110110
"queues": send_default_pii,
111111
"stack_frame_variables": include_local_variables,
112112
"frame_context_lines": (
@@ -156,7 +156,7 @@ def _resolve_explicit(
156156
"query_params": _kvcb_from_value(d.get("query_params") or {}),
157157
"graphql": _graphql_from_value(d.get("graphql") or {}),
158158
"gen_ai": _gen_ai_from_value(d.get("gen_ai") or {}),
159-
"database": d.get("database", True),
159+
"database_query_data": d.get("database_query_data", True),
160160
"queues": d.get("queues", True),
161161
"stack_frame_variables": stack_frame_variables,
162162
"frame_context_lines": frame_context_lines,

tests/test_data_collection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def _get(dc, path):
184184
{
185185
"graphql.document": True,
186186
"graphql.variables": True,
187-
"database": True,
187+
"database_query_data": True,
188188
},
189189
id="explicit_graphql_database_defaults",
190190
),
@@ -193,7 +193,7 @@ def _get(dc, path):
193193
{
194194
"graphql.document": False,
195195
"graphql.variables": False,
196-
"database": False,
196+
"database_query_data": False,
197197
"queues": False,
198198
},
199199
id="legacy_pii_off_gates_graphql_database_and_queues",
@@ -203,7 +203,7 @@ def _get(dc, path):
203203
{
204204
"graphql.document": True,
205205
"graphql.variables": True,
206-
"database": True,
206+
"database_query_data": True,
207207
"queues": True,
208208
},
209209
id="legacy_pii_on_collects_graphql_database_and_queues",

0 commit comments

Comments
 (0)