Skip to content

Commit bdce4be

Browse files
committed
skip appending anything to api/trace hosts
1 parent bbf03b0 commit bdce4be

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/langtrace_python_sdk/langtrace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ def get_headers(config: LangtraceConfig):
156156
def append_api_path(host: str):
157157
if host == LANGTRACE_REMOTE_URL:
158158
return f"{host}/api/trace"
159-
if "localhost" in host:
159+
160+
if "/api/trace" in host:
160161
return host
162+
161163
return f"{host}/v1/traces"
162164

163165

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.3.17"
1+
__version__ = "3.3.18"

0 commit comments

Comments
 (0)