Skip to content

Commit 8a59428

Browse files
committed
Remove span flags
1 parent 18ad281 commit 8a59428

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

sentry_sdk/traces.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
P = ParamSpec("P")
3838
R = TypeVar("R")
3939

40-
41-
FLAGS_CAPACITY = 10
42-
4340
BAGGAGE_HEADER_NAME = "baggage"
4441
SENTRY_TRACE_HEADER_NAME = "sentry-trace"
4542

@@ -98,7 +95,6 @@ def __str__(self) -> str:
9895
9996
Notes:
10097
- removed ability to provide a start_timestamp
101-
- moved _flags_capacity to a const
10298
"""
10399

104100

@@ -216,7 +212,6 @@ class StreamedSpan:
216212
"_status",
217213
"_start_timestamp_monotonic_ns",
218214
"_scope",
219-
"_flags",
220215
"_context_manager_state",
221216
"_continuous_profile",
222217
"_baggage",
@@ -258,7 +253,6 @@ def __init__(
258253
self.parent_sampled = parent_sampled
259254
self.segment = segment or self
260255

261-
self._flags: dict[str, bool] = {}
262256
self.start_timestamp = datetime.now(timezone.utc)
263257

264258
try:
@@ -485,10 +479,6 @@ def get_name(self) -> str:
485479
def set_name(self, name: str) -> None:
486480
self._name = name
487481

488-
def set_flag(self, flag: str, result: bool) -> None:
489-
if len(self._flags) < FLAGS_CAPACITY:
490-
self._flags[flag] = result
491-
492482
def set_op(self, op: str) -> None:
493483
self.set_attribute("sentry.op", op)
494484

@@ -752,9 +742,6 @@ def set_name(self, name: str) -> None:
752742
def get_name(self) -> str:
753743
return ""
754744

755-
def set_flag(self, flag: str, result: bool) -> None:
756-
pass
757-
758745
def set_op(self, op: str) -> None:
759746
pass
760747

0 commit comments

Comments
 (0)