File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 6868 "AZURE_IMAGE_ENDPOINT=secretref:azure-image-endpoint" \
6969 "AZURE_IMAGE_API_KEY=secretref:azure-image-api-key" \
7070 "SUSTINEO_STORAGE=secretref:sustineo-storage" \
71- "LOCAL_TRACING_ENABLED=false "
71+ "LOCAL_TRACING_ENABLED=true "
7272
7373 - name : Logout
7474 run : |
Original file line number Diff line number Diff line change 44import contextlib
55from pathlib import Path
66from typing import Union
7- from prompty .tracer import Tracer , PromptyTracer
7+ from prompty .tracer import Tracer # , PromptyTracer
88from opentelemetry import trace as oteltrace
99from opentelemetry .sdk .trace import TracerProvider
1010from opentelemetry .sdk .trace .export import BatchSpanProcessor
@@ -66,8 +66,9 @@ def init_tracing(local_tracing: bool = True):
6666 """
6767
6868 if local_tracing :
69- local_trace = PromptyTracer ()
70- Tracer .add ("PromptyTracer" , local_trace .tracer )
69+ #local_trace = PromptyTracer()
70+ #Tracer.add("PromptyTracer", local_trace.tracer)
71+ return
7172 else :
7273 # Initialize OpenTelemetry Tracer
7374 otel_genai_mapper = GenAIOTel (base_path / "semantic-mapper.json" )
You can’t perform that action at this time.
0 commit comments