Skip to content

Commit 1d28ac0

Browse files
committed
make arg names consistent
1 parent 125e161 commit 1d28ac0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sentry_sdk/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,25 +290,25 @@ def push_scope( # noqa: F811
290290

291291

292292
@scopemethod
293-
def set_attribute(key: str, value: "Any") -> None:
293+
def set_attribute(attribute: str, value: "Any") -> None:
294294
"""
295295
Set an attribute.
296296
297297
Any attributes-based telemetry (logs, metrics) captured in this scope will
298298
include this attribute.
299299
"""
300-
return get_isolation_scope().set_attribute(key, value)
300+
return get_isolation_scope().set_attribute(attribute, value)
301301

302302

303303
@scopemethod
304-
def remove_attribute(key: str) -> None:
304+
def remove_attribute(attribute: str) -> None:
305305
"""
306306
Remove an attribute.
307307
308308
If the attribute doesn't exist, this function will not have any effect and
309309
it will also not raise an exception.
310310
"""
311-
return get_isolation_scope().remove_attribute(key)
311+
return get_isolation_scope().remove_attribute(attribute)
312312

313313

314314
@scopemethod

0 commit comments

Comments
 (0)