olca 0.2.50__py3-none-any.whl → 0.2.52__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- olca/tracing.py +11 -2
- {olca-0.2.50.dist-info → olca-0.2.52.dist-info}/METADATA +1 -1
- {olca-0.2.50.dist-info → olca-0.2.52.dist-info}/RECORD +7 -7
- {olca-0.2.50.dist-info → olca-0.2.52.dist-info}/LICENSE +0 -0
- {olca-0.2.50.dist-info → olca-0.2.52.dist-info}/WHEEL +0 -0
- {olca-0.2.50.dist-info → olca-0.2.52.dist-info}/entry_points.txt +0 -0
- {olca-0.2.50.dist-info → olca-0.2.52.dist-info}/top_level.txt +0 -0
olca/tracing.py
CHANGED
@@ -11,6 +11,7 @@ class TracingManager:
|
|
11
11
|
def __init__(self, config):
|
12
12
|
self.config = config
|
13
13
|
self.handlers = []
|
14
|
+
self.langfuse = None
|
14
15
|
self.initialize_tracing()
|
15
16
|
|
16
17
|
def initialize_tracing(self):
|
@@ -34,8 +35,8 @@ class TracingManager:
|
|
34
35
|
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
35
36
|
|
36
37
|
def _setup_langfuse(self):
|
37
|
-
langfuse = initialize_langfuse()
|
38
|
-
if not langfuse:
|
38
|
+
self.langfuse = initialize_langfuse()
|
39
|
+
if not self.langfuse:
|
39
40
|
print("Warning: Missing Langfuse environment variables")
|
40
41
|
return None
|
41
42
|
|
@@ -43,3 +44,11 @@ class TracingManager:
|
|
43
44
|
|
44
45
|
def get_callbacks(self):
|
45
46
|
return self.handlers if self.handlers else None
|
47
|
+
|
48
|
+
def flush(self):
|
49
|
+
if self.langfuse:
|
50
|
+
self.langfuse.flush()
|
51
|
+
|
52
|
+
def shutdown(self):
|
53
|
+
if self.langfuse:
|
54
|
+
self.langfuse.shutdown()
|
@@ -3,11 +3,11 @@ olca/fusewill_cli.py,sha256=Gf8CaYs7Uo4NH8QfgRNYalpmSUo047p9rzdkvIABHi8,7872
|
|
3
3
|
olca/fusewill_utils.py,sha256=IOIElqWCIsNzePlS1FZa5_35vySYLwbMUGW6UhNefIc,6065
|
4
4
|
olca/olcacli.py,sha256=ada2JUa-KtCT0UEC-tkhlEFE616VNA8aFRCLZseI8VI,13497
|
5
5
|
olca/olcahelper.py,sha256=WdN6-K-N7-HnB9L_px6TsDKWiTXIusZM2I1d0GNQnFs,3322
|
6
|
-
olca/tracing.py,sha256=
|
6
|
+
olca/tracing.py,sha256=GSuXIKmIMQ9V2gLkKcin142Z2QpyS6obsnj8Tf-1zHc,1621
|
7
7
|
olca/utils.py,sha256=zM94HDMDYF95Yd9ubeOK6vuepbQN4kDFh0rTvaVFagI,912
|
8
|
-
olca-0.2.
|
9
|
-
olca-0.2.
|
10
|
-
olca-0.2.
|
11
|
-
olca-0.2.
|
12
|
-
olca-0.2.
|
13
|
-
olca-0.2.
|
8
|
+
olca-0.2.52.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
9
|
+
olca-0.2.52.dist-info/METADATA,sha256=61VEyhT_IvpR3Of9JeLIk7IDX3CPw6HedGNlzQ2_Z3I,25311
|
10
|
+
olca-0.2.52.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
11
|
+
olca-0.2.52.dist-info/entry_points.txt,sha256=AhP5FMv6vnOq9C76V_vxRVIO50smnZXG4RIY47oD2_U,103
|
12
|
+
olca-0.2.52.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
|
13
|
+
olca-0.2.52.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|