|
37 | 37 | P = ParamSpec("P") |
38 | 38 | R = TypeVar("R") |
39 | 39 |
|
40 | | - |
41 | | -FLAGS_CAPACITY = 10 |
42 | | - |
43 | 40 | BAGGAGE_HEADER_NAME = "baggage" |
44 | 41 | SENTRY_TRACE_HEADER_NAME = "sentry-trace" |
45 | 42 |
|
@@ -98,7 +95,6 @@ def __str__(self) -> str: |
98 | 95 |
|
99 | 96 | Notes: |
100 | 97 | - removed ability to provide a start_timestamp |
101 | | -- moved _flags_capacity to a const |
102 | 98 | """ |
103 | 99 |
|
104 | 100 |
|
@@ -216,7 +212,6 @@ class StreamedSpan: |
216 | 212 | "_status", |
217 | 213 | "_start_timestamp_monotonic_ns", |
218 | 214 | "_scope", |
219 | | - "_flags", |
220 | 215 | "_context_manager_state", |
221 | 216 | "_continuous_profile", |
222 | 217 | "_baggage", |
@@ -258,7 +253,6 @@ def __init__( |
258 | 253 | self.parent_sampled = parent_sampled |
259 | 254 | self.segment = segment or self |
260 | 255 |
|
261 | | - self._flags: dict[str, bool] = {} |
262 | 256 | self.start_timestamp = datetime.now(timezone.utc) |
263 | 257 |
|
264 | 258 | try: |
@@ -485,10 +479,6 @@ def get_name(self) -> str: |
485 | 479 | def set_name(self, name: str) -> None: |
486 | 480 | self._name = name |
487 | 481 |
|
488 | | - def set_flag(self, flag: str, result: bool) -> None: |
489 | | - if len(self._flags) < FLAGS_CAPACITY: |
490 | | - self._flags[flag] = result |
491 | | - |
492 | 482 | def set_op(self, op: str) -> None: |
493 | 483 | self.set_attribute("sentry.op", op) |
494 | 484 |
|
@@ -752,9 +742,6 @@ def set_name(self, name: str) -> None: |
752 | 742 | def get_name(self) -> str: |
753 | 743 | return "" |
754 | 744 |
|
755 | | - def set_flag(self, flag: str, result: bool) -> None: |
756 | | - pass |
757 | | - |
758 | 745 | def set_op(self, op: str) -> None: |
759 | 746 | pass |
760 | 747 |
|
|
0 commit comments