File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 5
5
from ..logger import logger
6
6
7
7
if TYPE_CHECKING :
8
- from ..run import RunConfig
9
8
from .spans import Span
10
9
from .traces import Trace
11
10
17
16
"current_trace" , default = None
18
17
)
19
18
20
- _current_run_config : contextvars .ContextVar ["RunConfig | None" ] = contextvars .ContextVar (
21
- "current_run_config" , default = None
22
- )
23
19
24
20
class Scope :
25
21
"""
@@ -51,17 +47,3 @@ def set_current_trace(cls, trace: "Trace | None") -> "contextvars.Token[Trace |
51
47
def reset_current_trace (cls , token : "contextvars.Token[Trace | None]" ) -> None :
52
48
logger .debug ("Resetting current trace" )
53
49
_current_trace .reset (token )
54
-
55
- @classmethod
56
- def get_current_run_config (cls ) -> "RunConfig | None" :
57
- return _current_run_config .get ()
58
-
59
- @classmethod
60
- def set_current_run_config (
61
- cls , run_config : "RunConfig | None"
62
- ) -> "contextvars.Token[RunConfig | None]" :
63
- return _current_run_config .set (run_config )
64
-
65
- @classmethod
66
- def reset_current_run_config (cls , token : "contextvars.Token[RunConfig | None]" ) -> None :
67
- _current_run_config .reset (token )
You can’t perform that action at this time.
0 commit comments