netra-sdk 0.1.12__py3-none-any.whl → 0.1.13__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/span_wrapper.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import json
2
2
  import logging
3
3
  import time
4
+ from datetime import datetime, timezone
4
5
  from typing import Any, Dict, List, Literal, Optional
5
6
 
6
7
  from opentelemetry import context as context_api
@@ -17,6 +18,7 @@ logger = logging.getLogger(__name__)
17
18
 
18
19
 
19
20
  class ActionModel(BaseModel): # type: ignore[misc]
21
+ start_time: str = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
20
22
  action: str
21
23
  action_type: str
22
24
  success: bool
netra/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "0.1.12"
1
+ __version__ = "0.1.13"
2
2
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: netra-sdk
3
- Version: 0.1.12
3
+ Version: 0.1.13
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
@@ -443,6 +443,7 @@ with Netra.start_span("image_generation") as span:
443
443
 
444
444
  # Track database operations and other actions
445
445
  action = ActionModel(
446
+ start_time="2025-07-18T10:29:30.855287Z",
446
447
  action="DB",
447
448
  action_type="INSERT",
448
449
  affected_records=[
@@ -460,6 +461,7 @@ with Netra.start_span("image_generation") as span:
460
461
 
461
462
  # Record API calls
462
463
  api_action = ActionModel(
464
+ start_time="2025-07-18T10:29:30.855287Z",
463
465
  action="API",
464
466
  action_type="CALL",
465
467
  metadata={
@@ -480,6 +482,7 @@ Action tracking follows this schema:
480
482
  ```python
481
483
  [
482
484
  {
485
+ "start_time": str, # Start time of the action
483
486
  "action": str, # Type of action (e.g., "DB", "API", "CACHE")
484
487
  "action_type": str, # Action subtype (e.g., "INSERT", "SELECT", "CALL")
485
488
  "affected_records": [ # Optional: List of records affected
@@ -37,10 +37,10 @@ netra/processors/__init__.py,sha256=wfnSskRBtMT90hO7LqFJoEW374LgoH_gnTxhynqtByI,
37
37
  netra/processors/session_span_processor.py,sha256=qcsBl-LnILWefsftI8NQhXDGb94OWPc8LvzhVA0JS_c,2432
38
38
  netra/scanner.py,sha256=wqjMZnEbVvrGMiUSI352grUyHpkk94oBfHfMiXPhpGU,3866
39
39
  netra/session_manager.py,sha256=EVcnWcSj4NdkH--HmqHx0mmzivQiM4GCyFLu6lwi33M,6252
40
- netra/span_wrapper.py,sha256=MMFuQTqEmQ33pj6qUeIx7EbJJoEz_hzW-4dt1Y2N7s8,7286
40
+ netra/span_wrapper.py,sha256=BJvWMJWYX95NRMj9Yjs6ZL3BY6c5v1VGVN9i88VfewQ,7409
41
41
  netra/tracer.py,sha256=In5QPVLz_6BxrolWpav9EuR9_hirD2UUIlyY75QUaKk,3450
42
- netra/version.py,sha256=M8O_KOud3C-M12268EAMgXJ706UW0Xwz8qck8k-JR5A,24
43
- netra_sdk-0.1.12.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
44
- netra_sdk-0.1.12.dist-info/METADATA,sha256=4awGXfz4AfhCi_DISQ6ETtgyTNWDjIuc5VxM9n4ioo8,25101
45
- netra_sdk-0.1.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
46
- netra_sdk-0.1.12.dist-info/RECORD,,
42
+ netra/version.py,sha256=PBhf_BIMfa1fmMCOO5V1SBLORGuuPOjZ5FtpjeZKVI4,24
43
+ netra_sdk-0.1.13.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
44
+ netra_sdk-0.1.13.dist-info/METADATA,sha256=ZTfWpwu5b22-e_OCrRaTWut7CayCEtGNE6O0hKQFbNM,25266
45
+ netra_sdk-0.1.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
46
+ netra_sdk-0.1.13.dist-info/RECORD,,