Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

## [0.1.74] - 2026-10-14
## [0.1.75] - 2026-03-13

- Update block instrument functionality to correctly block Redis and SQLAlchemy
- Remove httpx based check for blocking url


## [0.1.74] - 2026-03-13

- Add utility for prompt management


## [0.1.73] - 2026-10-14
## [0.1.73] - 2026-03-12

- Extended dependency support for opentelemetry and traceloop-sdk
- Added TTFT for Cerebras and Groq instrumentation
Expand Down Expand Up @@ -200,4 +206,4 @@ The format is based on Keep a Changelog and this project adheres to Semantic Ver

- Added utility to set input and output data for any active span in a trace

[0.1.74]: https://github.com/KeyValueSoftwareSystems/netra-sdk-py/tree/main
[0.1.75]: https://github.com/KeyValueSoftwareSystems/netra-sdk-py/tree/main
2 changes: 2 additions & 0 deletions netra/instrumentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def init_instrumentations(
Instruments.MISTRAL,
Instruments.OPENAI,
Instruments.GROQ,
Instruments.REDIS,
Instruments.PYMYSQL
}
)

Expand Down
10 changes: 4 additions & 6 deletions netra/processors/instrumentation_span_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,16 @@ def _wrap_set_attribute(self, span: Span) -> None:
"""
original_set_attribute: SetAttributeFunc = span.set_attribute
instrumentation_name = self._extract_instrumentation_name(span)
is_httpx = self._is_httpx_instrumentation(instrumentation_name)
# is_httpx = self._is_httpx_instrumentation(instrumentation_name)

if is_httpx:
self._check_and_mark_blocked_url(span, original_set_attribute)
# if is_httpx:
self._check_and_mark_blocked_url(span, original_set_attribute)

def wrapped_set_attribute(key: str, value: Any) -> None:
self._handle_set_attribute(
key=key,
value=value,
original_set_attribute=original_set_attribute,
is_httpx=is_httpx,
)

setattr(span, "set_attribute", wrapped_set_attribute)
Expand All @@ -136,7 +135,6 @@ def _handle_set_attribute(
key: str,
value: Any,
original_set_attribute: SetAttributeFunc,
is_httpx: bool,
) -> None:
"""Handles a set_attribute call with truncation and URL blocking.

Expand All @@ -147,7 +145,7 @@ def _handle_set_attribute(
is_httpx: Whether this is an HTTPX instrumentation span.
"""
try:
if is_httpx and key in _URL_ATTRIBUTE_KEYS:
if key in _URL_ATTRIBUTE_KEYS:
self._mark_blocked_if_internal_url(original_set_attribute, value)

truncated_value = self._truncate_value(value)
Expand Down
2 changes: 1 addition & 1 deletion netra/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.74"
__version__ = "0.1.75"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[project]
name = "netra-sdk"
version = "0.1.74"
version = "0.1.75"
description = "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."
authors = [
{name = "Sooraj Thomas",email = "sooraj@keyvalue.systems"}
Expand Down