Skip to content

Commit fa9e9b7

Browse files
committed
deprecation message in api docs
1 parent 7cbe46e commit fa9e9b7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

sentry_sdk/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def start_transaction(
389389
def set_measurement(name, value, unit=""):
390390
# type: (str, float, MeasurementUnit) -> None
391391
"""
392-
.. deprecated:: 2.21.0
392+
.. deprecated:: 2.28.0
393393
This function is deprecated and will be removed in the next major release.
394394
"""
395395
transaction = get_current_scope().transaction

sentry_sdk/tracing.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ def set_status(self, value):
613613

614614
def set_measurement(self, name, value, unit=""):
615615
# type: (str, float, MeasurementUnit) -> None
616+
"""
617+
.. deprecated:: 2.28.0
618+
This function is deprecated and will be removed in the next major release.
619+
"""
620+
616621
warnings.warn(
617622
"`set_measurement()` is deprecated and will be removed in the next major version. Please use `set_data()` instead.",
618623
DeprecationWarning,
@@ -1066,6 +1071,11 @@ def finish(
10661071

10671072
def set_measurement(self, name, value, unit=""):
10681073
# type: (str, float, MeasurementUnit) -> None
1074+
"""
1075+
.. deprecated:: 2.28.0
1076+
This function is deprecated and will be removed in the next major release.
1077+
"""
1078+
10691079
warnings.warn(
10701080
"`set_measurement()` is deprecated and will be removed in the next major version. Please use `set_data()` instead.",
10711081
DeprecationWarning,

0 commit comments

Comments
 (0)