Skip to content

Commit

Permalink
Merge pull request #444 from Scale3-Labs/development
Browse files Browse the repository at this point in the history
Release: Skip any path appending to `api/trace` hosts
  • Loading branch information
alizenhom authored Jan 2, 2025
2 parents 2353292 + 660de3e commit a398e92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/langtrace_python_sdk/langtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ def get_headers(config: LangtraceConfig):
def append_api_path(host: str):
if host == LANGTRACE_REMOTE_URL:
return f"{host}/api/trace"
if "localhost" in host:

if "/api/trace" in host:
return host

return f"{host}/v1/traces"


Expand Down
2 changes: 1 addition & 1 deletion src/langtrace_python_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.3.17"
__version__ = "3.3.18"

0 comments on commit a398e92

Please sign in to comment.