Skip to content

Commit c5b98bd

Browse files
authored
fix(sdk): get default span processor don't work without a base URL (#3360)
1 parent fd0c09f commit c5b98bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/traceloop-sdk/traceloop/sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def get_default_span_processor(
252252
"Authorization": f"Bearer {api_key}",
253253
}
254254
if api_endpoint is None:
255-
api_endpoint = os.getenv("TRACELOOP_BASE_URL")
255+
api_endpoint = os.getenv("TRACELOOP_BASE_URL") or "https://api.traceloop.com"
256256
return get_default_span_processor(disable_batch, api_endpoint, headers, exporter)
257257

258258
@staticmethod

0 commit comments

Comments
 (0)