@@ -50,13 +50,11 @@ def call_llm(prompt, temperature=0.7):
50
50
from collections .abc import AsyncGenerator , Generator
51
51
from contextvars import ContextVar
52
52
from functools import wraps
53
- from os import getenv
54
53
from types import TracebackType
55
54
from typing import Any , Callable , Literal , Optional , TypeVar , Union , cast , overload
56
55
57
56
from typing_extensions import ParamSpec
58
57
59
- from galileo .constants import DEFAULT_LOG_STREAM_NAME , DEFAULT_PROJECT_NAME
60
58
from galileo .logger import GalileoLogger
61
59
from galileo .schema .datasets import DatasetRecord
62
60
from galileo .schema .metrics import LocalMetricConfig
@@ -104,11 +102,6 @@ class GalileoDecorator:
104
102
2. A context manager via the `__call__` method
105
103
"""
106
104
107
- def __init__ (self ):
108
- # Get default values from environment variables
109
- self .project_from_env = getenv ("GALILEO_PROJECT" , DEFAULT_PROJECT_NAME )
110
- self .log_stream_from_env = getenv ("GALILEO_LOG_STREAM" , DEFAULT_LOG_STREAM_NAME )
111
-
112
105
def __enter__ (self ) -> "GalileoDecorator" :
113
106
"""
114
107
Entry point for the context manager.
@@ -173,13 +166,13 @@ def __call__(
173
166
_trace_stack .get ().append (_trace_context .get ())
174
167
_span_stack_stack .get ().append (_span_stack_context .get ().copy ())
175
168
176
- # Reset context values
169
+ # Reset trace context values
177
170
_span_stack_context .set ([])
178
171
_trace_context .set (None )
179
172
180
- # Set context values to environment defaults
181
- _project_context .set (self . project_from_env )
182
- _log_stream_context .set (self . log_stream_from_env )
173
+ # Set request context values to defaults
174
+ _project_context .set (None )
175
+ _log_stream_context .set (None )
183
176
_experiment_id_context .set (None )
184
177
185
178
# Override with explicitly provided values
0 commit comments