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

@@ -86,10 +86,6 @@ def init_instrumentations(
86
86
  if CustomInstruments.AIO_PIKA in netra_custom_instruments:
87
87
  init_aio_pika_instrumentation()
88
88
 
89
- # Initialize aiohttp_server instrumentation.
90
- if CustomInstruments.AIOHTTP_SERVER in netra_custom_instruments:
91
- init_aiohttp_server_instrumentation()
92
-
93
89
  # Initialize aiokafka instrumentation.
94
90
  if CustomInstruments.AIOKAFKA in netra_custom_instruments:
95
91
  init_aiokafka_instrumentation()
@@ -114,10 +110,6 @@ def init_instrumentations(
114
110
  if CustomInstruments.AWS_LAMBDA in netra_custom_instruments:
115
111
  init_aws_lambda_instrumentation()
116
112
 
117
- # Initialize boto instrumentation.
118
- if CustomInstruments.BOTO in netra_custom_instruments:
119
- init_boto_instrumentation()
120
-
121
113
  # Initialize boto3sqs instrumentation.
122
114
  if CustomInstruments.BOTO3SQS in netra_custom_instruments:
123
115
  init_boto3sqs_instrumentation()
@@ -210,10 +202,6 @@ def init_instrumentations(
210
202
  if CustomInstruments.PYMYSQL in netra_custom_instruments:
211
203
  init_pymysql_instrumentation()
212
204
 
213
- # Initialize pyramid instrumentation.
214
- if CustomInstruments.PYRAMID in netra_custom_instruments:
215
- init_pyramid_instrumentation()
216
-
217
205
  # Initialize redis instrumentation.
218
206
  if CustomInstruments.REDIS in netra_custom_instruments:
219
207
  init_redis_instrumentation()
@@ -455,22 +443,6 @@ def init_aio_pika_instrumentation() -> bool:
455
443
  return False
456
444
 
457
445
 
458
- def init_aiohttp_server_instrumentation() -> bool:
459
- """Initialize aiohttp_server instrumentation."""
460
- try:
461
- if is_package_installed("aiohttp"):
462
- from opentelemetry.instrumentation.aiohttp_server import AioHttpServerInstrumentor
463
-
464
- instrumentor = AioHttpServerInstrumentor()
465
- if not instrumentor.is_instrumented_by_opentelemetry:
466
- instrumentor.instrument()
467
- return True
468
- except Exception as e:
469
- logging.error(f"Error initializing aiohttp_server instrumentor: {e}")
470
- Telemetry().log_exception(e)
471
- return False
472
-
473
-
474
446
  def init_aiokafka_instrumentation() -> bool:
475
447
  """Initialize aiokafka instrumentation."""
476
448
  try:
@@ -567,22 +539,6 @@ def init_aws_lambda_instrumentation() -> bool:
567
539
  return False
568
540
 
569
541
 
570
- def init_boto_instrumentation() -> bool:
571
- """Initialize boto instrumentation."""
572
- try:
573
- if is_package_installed("boto"):
574
- from opentelemetry.instrumentation.boto import BotoInstrumentor
575
-
576
- instrumentor = BotoInstrumentor()
577
- if not instrumentor.is_instrumented_by_opentelemetry:
578
- instrumentor.instrument()
579
- return True
580
- except Exception as e:
581
- logging.error(f"Error initializing boto instrumentor: {e}")
582
- Telemetry().log_exception(e)
583
- return False
584
-
585
-
586
542
  def init_boto3sqs_instrumentation() -> bool:
587
543
  """Initialize boto3sqs instrumentation."""
588
544
  try:
@@ -618,7 +574,7 @@ def init_botocore_instrumentation() -> bool:
618
574
  def init_cassandra_instrumentation() -> bool:
619
575
  """Initialize cassandra instrumentation."""
620
576
  try:
621
- if is_package_installed("cassandra-driver"):
577
+ if is_package_installed("cassandra-driver") and is_package_installed("scylla-driver"):
622
578
  from opentelemetry.instrumentation.cassandra import CassandraInstrumentor
623
579
 
624
580
  instrumentor = CassandraInstrumentor()
@@ -951,22 +907,6 @@ def init_pymysql_instrumentation() -> bool:
951
907
  return False
952
908
 
953
909
 
954
- def init_pyramid_instrumentation() -> bool:
955
- """Initialize pyramid instrumentation."""
956
- try:
957
- if is_package_installed("pyramid"):
958
- from opentelemetry.instrumentation.pyramid import PyramidInstrumentor
959
-
960
- instrumentor = PyramidInstrumentor()
961
- if not instrumentor.is_instrumented_by_opentelemetry:
962
- instrumentor.instrument()
963
- return True
964
- except Exception as e:
965
- logging.error(f"Error initializing pyramid instrumentor: {e}")
966
- Telemetry().log_exception(e)
967
- return False
968
-
969
-
970
910
  def init_redis_instrumentation() -> bool:
971
911
  """Initialize redis instrumentation."""
972
912
  try:
@@ -90,13 +90,11 @@ NetraInstruments follows the given structure. Refer this for usage within Netra
90
90
 
91
91
  class InstrumentSet(Enum):
92
92
  AIOHTTP = "aiohttp"
93
- AIOHTTP_SERVER = "aiohttp_server"
94
93
  AIO_PIKA = "aio_pika"
95
94
  AIOKAFKA = "aiokafka"
96
95
  AIOPG = "aiopg"
97
96
  ALEPHALPHA = "alephalpha"
98
97
  ANTHROPIC = "anthropic"
99
- ASGI = "asgi"
100
98
  ASYNCCLICK = "asyncclick"
101
99
  ASYNCIO = "asyncio"
102
100
  ASYNCPG = "asyncpg"
@@ -145,7 +143,6 @@ class InstrumentSet(Enum):
145
143
  PYMONGO = "pymongo"
146
144
  PYMSSQL = "pymssql"
147
145
  PYMYSQL = "pymysql"
148
- PYRAMID = "pyramid"
149
146
  QDRANTDB = "qdrant_db"
150
147
  REDIS = "redis"
151
148
  REMOULADE = "remoulade"
@@ -166,5 +163,4 @@ class InstrumentSet(Enum):
166
163
  VERTEXAI = "vertexai"
167
164
  WATSONX = "watsonx"
168
165
  WEAVIATEDB = "weaviate_db"
169
- WSGI = "wsgi"
170
166
  """
netra/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.2"
1
+ __version__ = "0.1.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: netra-sdk
3
- Version: 0.1.2
3
+ Version: 0.1.3
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
@@ -22,14 +22,12 @@ Requires-Dist: llm-guard (>=0.3.16,<0.4.0) ; extra == "llm-guard"
22
22
  Requires-Dist: opentelemetry-api (>=1.34.0,<2.0.0)
23
23
  Requires-Dist: opentelemetry-instrumentation-aio-pika (>=0.55b1,<1.0.0)
24
24
  Requires-Dist: opentelemetry-instrumentation-aiohttp-client (>=0.55b1,<1.0.0)
25
- Requires-Dist: opentelemetry-instrumentation-aiohttp-server (>=0.55b1,<1.0.0)
26
25
  Requires-Dist: opentelemetry-instrumentation-aiokafka (>=0.55b1,<1.0.0)
27
26
  Requires-Dist: opentelemetry-instrumentation-aiopg (>=0.55b1,<1.0.0)
28
27
  Requires-Dist: opentelemetry-instrumentation-asyncclick (>=0.55b1,<1.0.0)
29
28
  Requires-Dist: opentelemetry-instrumentation-asyncio (>=0.55b1,<1.0.0)
30
29
  Requires-Dist: opentelemetry-instrumentation-asyncpg (>=0.55b1,<1.0.0)
31
30
  Requires-Dist: opentelemetry-instrumentation-aws-lambda (>=0.55b1,<1.0.0)
32
- Requires-Dist: opentelemetry-instrumentation-boto (>=0.55b1,<1.0.0)
33
31
  Requires-Dist: opentelemetry-instrumentation-boto3sqs (>=0.55b1,<1.0.0)
34
32
  Requires-Dist: opentelemetry-instrumentation-botocore (>=0.55b1,<1.0.0)
35
33
  Requires-Dist: opentelemetry-instrumentation-cassandra (>=0.55b1,<1.0.0)
@@ -55,7 +53,6 @@ Requires-Dist: opentelemetry-instrumentation-pymemcache (>=0.55b1,<1.0.0)
55
53
  Requires-Dist: opentelemetry-instrumentation-pymongo (>=0.55b1,<1.0.0)
56
54
  Requires-Dist: opentelemetry-instrumentation-pymssql (>=0.55b1,<1.0.0)
57
55
  Requires-Dist: opentelemetry-instrumentation-pymysql (>=0.55b1,<1.0.0)
58
- Requires-Dist: opentelemetry-instrumentation-pyramid (>=0.55b1,<1.0.0)
59
56
  Requires-Dist: opentelemetry-instrumentation-redis (>=0.55b1,<1.0.0)
60
57
  Requires-Dist: opentelemetry-instrumentation-remoulade (>=0.55b1,<1.0.0)
61
58
  Requires-Dist: opentelemetry-instrumentation-requests (>=0.55b1,<1.0.0)
@@ -228,7 +225,6 @@ class CustomerSupportAgent:
228
225
  - **Django** - High-level Python web framework
229
226
  - **Flask** - Lightweight WSGI web application framework
230
227
  - **Falcon** - High-performance Python web framework
231
- - **Pyramid** - Small, fast, down-to-earth Python web framework
232
228
  - **Starlette** - Lightweight ASGI framework/toolkit
233
229
  - **Tornado** - Asynchronous networking library and web framework
234
230
  - **gRPC** - High-performance, open-source universal RPC framework
@@ -9,7 +9,7 @@ netra/exceptions/__init__.py,sha256=uDgcBxmC4WhdS7HRYQk_TtJyxH1s1o6wZmcsnSHLAcM,
9
9
  netra/exceptions/injection.py,sha256=ke4eUXRYUFJkMZgdSyPPkPt5PdxToTI6xLEBI0hTWUQ,1332
10
10
  netra/exceptions/pii.py,sha256=MT4p_x-zH3VtYudTSxw1Z9qQZADJDspq64WrYqSWlZc,2438
11
11
  netra/input_scanner.py,sha256=bzP3s7YudGHQrIbUgQGrcIBEJ6CmOewzuYNSu75cVXM,4988
12
- netra/instrumentation/__init__.py,sha256=CvoAQF_tHzDph-CAypPL-eBvaM53JDtJwDTHZ7XPPeE,41170
12
+ netra/instrumentation/__init__.py,sha256=s0PnnEZgxf-Yd0N6_AmpGYjQh_bINAIAUsX8nnSD9oU,39066
13
13
  netra/instrumentation/aiohttp/__init__.py,sha256=M1kuF0R3gKY5rlbhEC1AR13UWHelmfokluL2yFysKWc,14398
14
14
  netra/instrumentation/aiohttp/version.py,sha256=Zy-0Aukx-HS_Mo3NKPWg-hlUoWKDzS0w58gLoVtJec8,24
15
15
  netra/instrumentation/cohere/__init__.py,sha256=3XwmCAZwZiMkHdNN3YvcBOLsNCx80ymbU31TyMzv1IY,17685
@@ -20,7 +20,7 @@ netra/instrumentation/google_genai/utils.py,sha256=2OeSN5jUaMKF4x5zWiW65R1LB_a44
20
20
  netra/instrumentation/google_genai/version.py,sha256=Hww1duZrC8kYK7ThBSQVyz0HNOb0ys_o8Pln-wVQ1hI,23
21
21
  netra/instrumentation/httpx/__init__.py,sha256=w1su_eQP_w5ZJHq0Lf-4miF5zM4OOW0ItmRp0wi85Ew,19388
22
22
  netra/instrumentation/httpx/version.py,sha256=ZRQKbgDaGz_yuLk-cUKuk6ZBKCSRKZC8nQd041NRNXk,23
23
- netra/instrumentation/instruments.py,sha256=5U4r9XMMfjccd9BWHAbHMo1WcCUClnbU2oWTLAAqMw4,4345
23
+ netra/instrumentation/instruments.py,sha256=M_-4N1YML-Lc1Jb2dIzoHF9sCmsFz4euUvm8a-VKROM,4247
24
24
  netra/instrumentation/mistralai/__init__.py,sha256=RE0b-rS6iXdoynJMFKHL9s97eYo5HghrJa013fR4ZhI,18910
25
25
  netra/instrumentation/mistralai/config.py,sha256=XCyo3mk30qkvqyCqeTrKwROahu0gcOEwmbDLOo53J5k,121
26
26
  netra/instrumentation/mistralai/utils.py,sha256=nhdIer5gJFxuGwg8FCT222hggDHeMQDhJctnDSwLqcc,894
@@ -35,8 +35,8 @@ netra/scanner.py,sha256=wqjMZnEbVvrGMiUSI352grUyHpkk94oBfHfMiXPhpGU,3866
35
35
  netra/session.py,sha256=Lsd7yps2YtjN7P10HsGN3bRZxufoeUnGxAH6Us8_l-Y,8734
36
36
  netra/session_manager.py,sha256=UusP3MRZlLeU4NtBVlXQ_sCgRg-LGleVdYPq5MwLvi8,3555
37
37
  netra/tracer.py,sha256=WZDBIpPp3oL8MkKBhlw0gxAXXSd1FY3bicLUKt2GNxc,3540
38
- netra/version.py,sha256=YvuYzWnKtqBb-IqG8HAu-nhIYAsgj9Vmc_b9o7vO-js,22
39
- netra_sdk-0.1.2.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
40
- netra_sdk-0.1.2.dist-info/METADATA,sha256=0gBniDy_OiHTa27cSm0sZxWO68qF4ieLt5TKugq1Pbk,24630
41
- netra_sdk-0.1.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
- netra_sdk-0.1.2.dist-info/RECORD,,
38
+ netra/version.py,sha256=XEqb2aiIn8fzGE68Mph4ck1FtQqsR_am0wRWvrYPffQ,22
39
+ netra_sdk-0.1.3.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
40
+ netra_sdk-0.1.3.dist-info/METADATA,sha256=7tXAkE-43Y10ksq8X6-VozfhZwkzuqmRnRqqiYyOaog,24349
41
+ netra_sdk-0.1.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
+ netra_sdk-0.1.3.dist-info/RECORD,,