Skip to content

Commit 660de3e

Browse files
authored
Merge pull request #443 from Scale3-Labs/ali/fix-host-api-path
skip appending anything to `api/trace` hosts
2 parents 6480534 + bdce4be commit 660de3e

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)