Skip to content

Commit d4101a3

Browse files
committed
add return type
1 parent cf61f00 commit d4101a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

schematic_api/api/routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ def export(self, spans: List[Span]) -> None:
7575
f.write(span_json_one_line)
7676

7777

78-
def set_up_tracing():
78+
def set_up_tracing() -> None:
7979
"""Set up tracing for the API."""
8080
tracing_export = os.environ.get("TRACING_EXPORT_FORMAT", None)
8181
if tracing_export == "otlp":
8282
trace.get_tracer_provider().add_span_processor(
8383
BatchSpanProcessor(OTLPSpanExporter())
8484
)
85+
print("going through here")
8586
elif tracing_export == "file":
8687
timestamp_millis = int(time.time() * 1000)
8788
file_name = f"otel_spans_integration_testing_{timestamp_millis}.ndjson"

0 commit comments

Comments
 (0)