langtrace-python-sdk 3.8.13__py3-none-any.whl → 3.8.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,7 +205,30 @@ def add_span_processor(provider: TracerProvider, config: LangtraceConfig, export
205
205
  )
206
206
  else:
207
207
  provider.add_span_processor(BatchSpanProcessor(exporter))
208
- print(Fore.BLUE + "Exporting spans to Langtrace cloud.." + Fore.RESET)
208
+ project = get_project(config)
209
+ if project:
210
+ print(Fore.BLUE + f"Exporting spans to {project['name']}.." + Fore.RESET)
211
+ print(
212
+ Fore.BLUE
213
+ + f"Langtrace Project URL: {LANGTRACE_REMOTE_URL}/project/{project['id']}/traces"
214
+ + Fore.RESET
215
+ )
216
+ else:
217
+ print(Fore.BLUE + "Exporting spans to Langtrace cloud.." + Fore.RESET)
218
+
219
+
220
+ def get_project(config: LangtraceConfig):
221
+ import requests
222
+
223
+ try:
224
+
225
+ response = requests.get(
226
+ f"{LANGTRACE_REMOTE_URL}/api/project",
227
+ headers={"x-api-key": config.api_key},
228
+ )
229
+ return response.json()["project"]
230
+ except Exception as error:
231
+ return None
209
232
 
210
233
 
211
234
  def init_sentry(config: LangtraceConfig, host: str):
@@ -1 +1 @@
1
- __version__ = "3.8.13"
1
+ __version__ = "3.8.14"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langtrace-python-sdk
3
- Version: 3.8.13
3
+ Version: 3.8.14
4
4
  Summary: Python SDK for LangTrace
5
5
  Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
6
6
  Author-email: Scale3 Labs <engineering@scale3labs.com>
@@ -120,8 +120,8 @@ examples/vertexai_example/main.py,sha256=gndId5X5ksD-ycxnAWMdEqIDbLc3kz5Vt8vm4YP
120
120
  examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56snk-Bbg2Kw,618
121
121
  examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
122
122
  langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
123
- langtrace_python_sdk/langtrace.py,sha256=wNM19qPBL5mbx-K9N2Ly06G0dUcPxJtDRbmFcH8g8Sk,14235
124
- langtrace_python_sdk/version.py,sha256=8RDF8_XSR41aTBeWQCybNemW6jghvDG0jhYxWVmwlSg,23
123
+ langtrace_python_sdk/langtrace.py,sha256=JYBCbklWv463lzRUH7pfkHAVoc3YHh-q_2Iv6LZ2HhU,14896
124
+ langtrace_python_sdk/version.py,sha256=o1YxXVHZc6TZFzK0b_XFqGQHEQN04JFH9ZHn5KGykdE,23
125
125
  langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
126
126
  langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=EVCrouYCpY98f0KSaKr4PzNxPULTZZO6dSA_crEOyJU,106
127
127
  langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -312,8 +312,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
312
312
  tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
313
313
  tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
314
314
  tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
315
- langtrace_python_sdk-3.8.13.dist-info/METADATA,sha256=4PR2xwL1k_hlP-sWWEn7e3QLxBR_mXRGFPqqdFwX36Q,15845
316
- langtrace_python_sdk-3.8.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
317
- langtrace_python_sdk-3.8.13.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
318
- langtrace_python_sdk-3.8.13.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
319
- langtrace_python_sdk-3.8.13.dist-info/RECORD,,
315
+ langtrace_python_sdk-3.8.14.dist-info/METADATA,sha256=cXX15evxHYxT3H0ZnwQym26pmT4cvZX2YJHUCs2p3Wc,15845
316
+ langtrace_python_sdk-3.8.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
317
+ langtrace_python_sdk-3.8.14.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
318
+ langtrace_python_sdk-3.8.14.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
319
+ langtrace_python_sdk-3.8.14.dist-info/RECORD,,