netra-sdk 0.1.37__py3-none-any.whl → 0.1.38__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/processors/instrumentation_span_processor.py +11 -8
- netra/version.py +1 -1
- {netra_sdk-0.1.37.dist-info → netra_sdk-0.1.38.dist-info}/METADATA +1 -1
- {netra_sdk-0.1.37.dist-info → netra_sdk-0.1.38.dist-info}/RECORD +6 -6
- {netra_sdk-0.1.37.dist-info → netra_sdk-0.1.38.dist-info}/LICENCE +0 -0
- {netra_sdk-0.1.37.dist-info → netra_sdk-0.1.38.dist-info}/WHEEL +0 -0
|
@@ -30,13 +30,15 @@ class InstrumentationSpanProcessor(SpanProcessor): # type: ignore[misc]
|
|
|
30
30
|
if scope is not None:
|
|
31
31
|
name = getattr(scope, "name", None)
|
|
32
32
|
if isinstance(name, str) and name:
|
|
33
|
-
#
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
# Only truncate when coming from known namespaces
|
|
34
|
+
if name.startswith("opentelemetry.instrumentation.") or name.startswith("netra.instrumentation."):
|
|
35
|
+
try:
|
|
36
|
+
base = name.rsplit(".", 1)[-1].strip()
|
|
37
|
+
if base:
|
|
38
|
+
return base
|
|
39
|
+
except Exception:
|
|
40
|
+
pass
|
|
41
|
+
# Otherwise, return as-is
|
|
40
42
|
return name
|
|
41
43
|
return None
|
|
42
44
|
|
|
@@ -87,7 +89,8 @@ class InstrumentationSpanProcessor(SpanProcessor): # type: ignore[misc]
|
|
|
87
89
|
|
|
88
90
|
# Set this span's instrumentation name
|
|
89
91
|
name = self._detect_raw_instrumentation_name(span)
|
|
90
|
-
|
|
92
|
+
print(name)
|
|
93
|
+
if name in ALLOWED_INSTRUMENTATION_NAMES:
|
|
91
94
|
span.set_attribute(f"{Config.LIBRARY_NAME}.instrumentation.name", name)
|
|
92
95
|
except Exception:
|
|
93
96
|
pass
|
netra/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.38"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: netra-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.38
|
|
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
|
|
@@ -41,15 +41,15 @@ netra/instrumentation/weaviate/__init__.py,sha256=EOlpWxobOLHYKqo_kMct_7nu26x1hr
|
|
|
41
41
|
netra/instrumentation/weaviate/version.py,sha256=PiCZHjonujPbnIn0KmD3Yl68hrjPRG_oKe5vJF3mmG8,24
|
|
42
42
|
netra/pii.py,sha256=Rn4SjgTJW_aw9LcbjLuMqF3fKd9b1ndlYt1CaK51Ge0,33125
|
|
43
43
|
netra/processors/__init__.py,sha256=TLVBKk4Bli7MOyHTy_F-4NSm0thzIcJcZAVVNoq6gK8,333
|
|
44
|
-
netra/processors/instrumentation_span_processor.py,sha256=
|
|
44
|
+
netra/processors/instrumentation_span_processor.py,sha256=V714EAFuBOq5Qdi5ITheEZouLuFOqLLVxjgRJH4FA9o,4389
|
|
45
45
|
netra/processors/scrubbing_span_processor.py,sha256=dJ86Ncmjvmrhm_uAdGTwcGvRpZbVVWqD9AOFwEMWHZY,6701
|
|
46
46
|
netra/processors/session_span_processor.py,sha256=qcsBl-LnILWefsftI8NQhXDGb94OWPc8LvzhVA0JS_c,2432
|
|
47
47
|
netra/scanner.py,sha256=kyDpeZiscCPb6pjuhS-sfsVj-dviBFRepdUWh0sLoEY,11554
|
|
48
48
|
netra/session_manager.py,sha256=E-LAvmhlmSED7iNsfrfVHXD4-vES2K-EQaiOQoYpE78,14709
|
|
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=
|
|
52
|
-
netra_sdk-0.1.
|
|
53
|
-
netra_sdk-0.1.
|
|
54
|
-
netra_sdk-0.1.
|
|
55
|
-
netra_sdk-0.1.
|
|
51
|
+
netra/version.py,sha256=iqMsqiw28paXOQhpmbrJrO6OnNN9YpR83VgJimFDq8k,23
|
|
52
|
+
netra_sdk-0.1.38.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
|
|
53
|
+
netra_sdk-0.1.38.dist-info/METADATA,sha256=P0dktznjyhBfdx2wj7QUZ9_4b5PlcR7lbq3DirR4ZC0,28210
|
|
54
|
+
netra_sdk-0.1.38.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
55
|
+
netra_sdk-0.1.38.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|