netra-sdk 0.1.35__py3-none-any.whl → 0.1.36__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.

Potentially problematic release.


This version of netra-sdk might be problematic. Click here for more details.

netra/__init__.py CHANGED
@@ -284,5 +284,18 @@ class Netra:
284
284
  if value:
285
285
  SessionManager.set_attribute_on_target_span(f"{Config.LIBRARY_NAME}.span.output", value, span_name)
286
286
 
287
+ @classmethod
288
+ def set_prompt(cls, value: Any, span_name: Optional[str] = None) -> None:
289
+ """
290
+ Set custom attribute `netra.span.prompt` on a target span.
291
+
292
+ Args:
293
+ value: Prompt payload to record (string or JSON-serializable object)
294
+ span_name: Optional. When provided, sets the attribute on the span registered
295
+ with this name. Otherwise sets on the active span.
296
+ """
297
+ if value:
298
+ SessionManager.set_attribute_on_target_span(f"{Config.LIBRARY_NAME}.span.prompt", value, span_name)
299
+
287
300
 
288
301
  __all__ = ["Netra", "UsageModel", "ActionModel"]
netra/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.35"
1
+ __version__ = "0.1.36"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: netra-sdk
3
- Version: 0.1.35
3
+ Version: 0.1.36
4
4
  Summary: A Python SDK for AI application observability that provides OpenTelemetry-based monitoring, tracing, and PII protection for LLM and vector database applications. Enables easy instrumentation, session tracking, and privacy-focused data collection for AI systems in production environments.
5
5
  License: Apache-2.0
6
6
  Keywords: netra,tracing,observability,sdk,ai,llm,vector,database
@@ -1,4 +1,4 @@
1
- netra/__init__.py,sha256=bBnv8InguoqBleHuA5KNU145eozdPOooxQrIMaKgJ5c,10942
1
+ netra/__init__.py,sha256=V6PkE_FPhNBcBDZWt9MuSItYplRcr0MfnBp8o2vZyUw,11519
2
2
  netra/anonymizer/__init__.py,sha256=KeGPPZqKVZbtkbirEKYTYhj6aZHlakjdQhD7QHqBRio,133
3
3
  netra/anonymizer/anonymizer.py,sha256=IcrYkdwWrFauGWUeAW-0RwrSUM8VSZCFNtoywZhvIqU,3778
4
4
  netra/anonymizer/base.py,sha256=ytPxHCUD2OXlEY6fNTuMmwImNdIjgj294I41FIgoXpU,5946
@@ -48,8 +48,8 @@ netra/scanner.py,sha256=kyDpeZiscCPb6pjuhS-sfsVj-dviBFRepdUWh0sLoEY,11554
48
48
  netra/session_manager.py,sha256=pyhtWYwFkrieNfrVFxSqxDsErPZzxPIt94zqvABLTAI,12229
49
49
  netra/span_wrapper.py,sha256=IygQX78xQRlL_Z1MfKfUbv0okihx92qNClnRlYFtRNc,8004
50
50
  netra/tracer.py,sha256=FJO8Cine-WL9K_4wn6RVjQOgX6c1JCp_8QowUbRSVHk,7718
51
- netra/version.py,sha256=ABqgofsnbWf7823vTBbZNQ81eKQbWwrVToAU6T3z-6s,23
52
- netra_sdk-0.1.35.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
53
- netra_sdk-0.1.35.dist-info/METADATA,sha256=Aewd-yCWdZ32uabTT_io4cnfSmrciVuugAxVgDy22nw,28210
54
- netra_sdk-0.1.35.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
55
- netra_sdk-0.1.35.dist-info/RECORD,,
51
+ netra/version.py,sha256=z6JYG2yALo9HI8zZMbgirtKP92kE14gI-nkfBP7Sf24,23
52
+ netra_sdk-0.1.36.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
53
+ netra_sdk-0.1.36.dist-info/METADATA,sha256=rfE5HHEwlUD7Z9HvYF6hii6GhQ7k3Mdvr2OmnmbXFqI,28210
54
+ netra_sdk-0.1.36.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
55
+ netra_sdk-0.1.36.dist-info/RECORD,,