Skip to content

Commit 13b8055

Browse files
committed
append api/trace if sending to langtrace cloud
1 parent 0b8defc commit 13b8055

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/langtrace_python_sdk/langtrace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def get_exporter(config: LangtraceConfig, host: str):
147147
return config.custom_remote_exporter
148148

149149
headers = get_headers(config)
150+
host = f"{host}/api/trace" if host == LANGTRACE_REMOTE_URL else host
150151
if "http" in host.lower() or "https" in host.lower():
151152
return HTTPExporter(endpoint=host, headers=headers)
152153
else:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.1.0"
1+
__version__ = "3.1.1"

0 commit comments

Comments
 (0)