We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf61f00 commit d4101a3Copy full SHA for d4101a3
schematic_api/api/routes.py
@@ -75,13 +75,14 @@ def export(self, spans: List[Span]) -> None:
75
f.write(span_json_one_line)
76
77
78
-def set_up_tracing():
+def set_up_tracing() -> None:
79
"""Set up tracing for the API."""
80
tracing_export = os.environ.get("TRACING_EXPORT_FORMAT", None)
81
if tracing_export == "otlp":
82
trace.get_tracer_provider().add_span_processor(
83
BatchSpanProcessor(OTLPSpanExporter())
84
)
85
+ print("going through here")
86
elif tracing_export == "file":
87
timestamp_millis = int(time.time() * 1000)
88
file_name = f"otel_spans_integration_testing_{timestamp_millis}.ndjson"
0 commit comments