langtrace-python-sdk 3.3.16__py3-none-any.whl → 3.3.17__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- langtrace_python_sdk/langtrace.py +10 -8
- langtrace_python_sdk/version.py +1 -1
- {langtrace_python_sdk-3.3.16.dist-info → langtrace_python_sdk-3.3.17.dist-info}/METADATA +1 -1
- {langtrace_python_sdk-3.3.16.dist-info → langtrace_python_sdk-3.3.17.dist-info}/RECORD +7 -7
- {langtrace_python_sdk-3.3.16.dist-info → langtrace_python_sdk-3.3.17.dist-info}/WHEEL +0 -0
- {langtrace_python_sdk-3.3.16.dist-info → langtrace_python_sdk-3.3.17.dist-info}/entry_points.txt +0 -0
- {langtrace_python_sdk-3.3.16.dist-info → langtrace_python_sdk-3.3.17.dist-info}/licenses/LICENSE +0 -0
@@ -153,6 +153,14 @@ def get_headers(config: LangtraceConfig):
|
|
153
153
|
return headers
|
154
154
|
|
155
155
|
|
156
|
+
def append_api_path(host: str):
|
157
|
+
if host == LANGTRACE_REMOTE_URL:
|
158
|
+
return f"{host}/api/trace"
|
159
|
+
if "localhost" in host:
|
160
|
+
return host
|
161
|
+
return f"{host}/v1/traces"
|
162
|
+
|
163
|
+
|
156
164
|
def get_exporter(config: LangtraceConfig, host: str):
|
157
165
|
if config.custom_remote_exporter:
|
158
166
|
return config.custom_remote_exporter
|
@@ -160,14 +168,8 @@ def get_exporter(config: LangtraceConfig, host: str):
|
|
160
168
|
headers = get_headers(config)
|
161
169
|
exporter_protocol = os.environ.get("OTEL_EXPORTER_OTLP_PROTOCOL", "http")
|
162
170
|
if "http" in exporter_protocol.lower():
|
163
|
-
|
164
|
-
|
165
|
-
f"{host}/api/trace"
|
166
|
-
if host == LANGTRACE_REMOTE_URL
|
167
|
-
else f"{host}/v1/traces"
|
168
|
-
),
|
169
|
-
headers=headers,
|
170
|
-
)
|
171
|
+
host = append_api_path(host)
|
172
|
+
return HTTPExporter(endpoint=host, headers=headers)
|
171
173
|
else:
|
172
174
|
return GRPCExporter(endpoint=host, headers=headers)
|
173
175
|
|
langtrace_python_sdk/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "3.3.
|
1
|
+
__version__ = "3.3.17"
|
@@ -108,8 +108,8 @@ examples/vertexai_example/main.py,sha256=gndId5X5ksD-ycxnAWMdEqIDbLc3kz5Vt8vm4YP
|
|
108
108
|
examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56snk-Bbg2Kw,618
|
109
109
|
examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
|
110
110
|
langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
|
111
|
-
langtrace_python_sdk/langtrace.py,sha256=
|
112
|
-
langtrace_python_sdk/version.py,sha256=
|
111
|
+
langtrace_python_sdk/langtrace.py,sha256=Jbrmf3c8WwCb75fPU7Pp38EbgVPp6MxNlTL1DIwD00k,13150
|
112
|
+
langtrace_python_sdk/version.py,sha256=XsZO_FxCrBTe748Sk8qc957jJGKzbb_MCEA7H8yz2-I,23
|
113
113
|
langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
|
114
114
|
langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=EVCrouYCpY98f0KSaKr4PzNxPULTZZO6dSA_crEOyJU,106
|
115
115
|
langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -270,8 +270,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
|
|
270
270
|
tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
|
271
271
|
tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
|
272
272
|
tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
|
273
|
-
langtrace_python_sdk-3.3.
|
274
|
-
langtrace_python_sdk-3.3.
|
275
|
-
langtrace_python_sdk-3.3.
|
276
|
-
langtrace_python_sdk-3.3.
|
277
|
-
langtrace_python_sdk-3.3.
|
273
|
+
langtrace_python_sdk-3.3.17.dist-info/METADATA,sha256=CQZSp7-_M2whPPPbtgOJ7VVIaGNRWIthKJobbXKQr_k,15676
|
274
|
+
langtrace_python_sdk-3.3.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
275
|
+
langtrace_python_sdk-3.3.17.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
|
276
|
+
langtrace_python_sdk-3.3.17.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
277
|
+
langtrace_python_sdk-3.3.17.dist-info/RECORD,,
|
File without changes
|
{langtrace_python_sdk-3.3.16.dist-info → langtrace_python_sdk-3.3.17.dist-info}/entry_points.txt
RENAMED
File without changes
|
{langtrace_python_sdk-3.3.16.dist-info → langtrace_python_sdk-3.3.17.dist-info}/licenses/LICENSE
RENAMED
File without changes
|