nvidia-nat-opentelemetry 1.3.0rc1__py3-none-any.whl → 1.4.0a20251008__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.
- nat/plugins/opentelemetry/mixin/otlp_span_exporter_mixin.py +2 -1
- nat/plugins/opentelemetry/otel_span.py +3 -2
- nat/plugins/opentelemetry/otlp_span_adapter_exporter.py +3 -2
- nat/plugins/opentelemetry/otlp_span_redaction_adapter_exporter.py +3 -2
- {nvidia_nat_opentelemetry-1.3.0rc1.dist-info → nvidia_nat_opentelemetry-1.4.0a20251008.dist-info}/METADATA +2 -2
- nvidia_nat_opentelemetry-1.4.0a20251008.dist-info/RECORD +15 -0
- nvidia_nat_opentelemetry-1.3.0rc1.dist-info/RECORD +0 -15
- {nvidia_nat_opentelemetry-1.3.0rc1.dist-info → nvidia_nat_opentelemetry-1.4.0a20251008.dist-info}/WHEEL +0 -0
- {nvidia_nat_opentelemetry-1.3.0rc1.dist-info → nvidia_nat_opentelemetry-1.4.0a20251008.dist-info}/entry_points.txt +0 -0
- {nvidia_nat_opentelemetry-1.3.0rc1.dist-info → nvidia_nat_opentelemetry-1.4.0a20251008.dist-info}/top_level.txt +0 -0
@@ -35,7 +35,8 @@ class OTLPSpanExporterMixin:
|
|
35
35
|
|
36
36
|
This mixin is designed to be used with OtelSpanExporter as a base class:
|
37
37
|
|
38
|
-
Example
|
38
|
+
Example::
|
39
|
+
|
39
40
|
class MyOTLPExporter(OtelSpanExporter, OTLPSpanExporterMixin):
|
40
41
|
def __init__(self, endpoint, headers, **kwargs):
|
41
42
|
super().__init__(endpoint=endpoint, headers=headers, **kwargs)
|
@@ -86,8 +86,9 @@ class OtelSpan(Span):
|
|
86
86
|
self._name = name
|
87
87
|
# Create a new SpanContext if none provided or if Context is provided
|
88
88
|
if context is None or isinstance(context, Context):
|
89
|
-
|
90
|
-
|
89
|
+
# Generate non-zero IDs per OTel spec (uuid4 is automatically non-zero)
|
90
|
+
trace_id = uuid.uuid4().int
|
91
|
+
span_id = uuid.uuid4().int >> 64
|
91
92
|
self._context = SpanContext(
|
92
93
|
trace_id=trace_id,
|
93
94
|
span_id=span_id,
|
@@ -43,7 +43,8 @@ class OTLPSpanAdapterExporter(OTLPSpanExporterMixin, OtelSpanExporter):
|
|
43
43
|
- Grafana Tempo
|
44
44
|
- Custom OTLP-compatible backends
|
45
45
|
|
46
|
-
Example
|
46
|
+
Example::
|
47
|
+
|
47
48
|
exporter = OTLPSpanAdapterExporter(
|
48
49
|
endpoint="https://api.service.com/v1/traces",
|
49
50
|
headers={"Authorization": "Bearer your-token"},
|
@@ -79,7 +80,7 @@ class OTLPSpanAdapterExporter(OTLPSpanExporterMixin, OtelSpanExporter):
|
|
79
80
|
resource_attributes: Additional resource attributes for spans.
|
80
81
|
endpoint: The endpoint for the OTLP service.
|
81
82
|
headers: The headers for the OTLP service.
|
82
|
-
|
83
|
+
otlp_kwargs: Additional keyword arguments for the OTLP service.
|
83
84
|
"""
|
84
85
|
super().__init__(context_state=context_state,
|
85
86
|
batch_size=batch_size,
|
@@ -55,7 +55,8 @@ class OTLPSpanHeaderRedactionAdapterExporter(OTLPSpanAdapterExporter):
|
|
55
55
|
- Grafana Tempo
|
56
56
|
- Custom OTLP-compatible backends
|
57
57
|
|
58
|
-
Example
|
58
|
+
Example::
|
59
|
+
|
59
60
|
def should_redact(auth_key: str) -> bool:
|
60
61
|
return auth_key in ["sensitive_user", "test_user"]
|
61
62
|
|
@@ -116,7 +117,7 @@ class OTLPSpanHeaderRedactionAdapterExporter(OTLPSpanAdapterExporter):
|
|
116
117
|
redaction_tag: Tag to add to spans when redaction occurs.
|
117
118
|
endpoint: The endpoint for the OTLP service.
|
118
119
|
headers: The headers for the OTLP service.
|
119
|
-
|
120
|
+
otlp_kwargs: Additional keyword arguments for the OTLP service.
|
120
121
|
"""
|
121
122
|
super().__init__(context_state=context_state,
|
122
123
|
batch_size=batch_size,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nvidia-nat-opentelemetry
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.4.0a20251008
|
4
4
|
Summary: Subpackage for OpenTelemetry integration in NeMo Agent toolkit
|
5
5
|
Keywords: ai,observability,opentelemetry
|
6
6
|
Classifier: Programming Language :: Python
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.13
|
10
10
|
Requires-Python: <3.14,>=3.11
|
11
11
|
Description-Content-Type: text/markdown
|
12
|
-
Requires-Dist: nvidia-nat==v1.
|
12
|
+
Requires-Dist: nvidia-nat==v1.4.0a20251008
|
13
13
|
Requires-Dist: opentelemetry-api~=1.2
|
14
14
|
Requires-Dist: opentelemetry-exporter-otlp~=1.3
|
15
15
|
Requires-Dist: opentelemetry-sdk~=1.3
|
@@ -0,0 +1,15 @@
|
|
1
|
+
nat/meta/pypi.md,sha256=_o1o1BLPY1pvjCkklWxlm7LlIDMPCk-2Rho85NUuN8U,1109
|
2
|
+
nat/plugins/opentelemetry/__init__.py,sha256=j-YKuxwSIzGziyDyunw8s_W7WiFiqKLdFjw-utwHPFk,1079
|
3
|
+
nat/plugins/opentelemetry/otel_span.py,sha256=MC_ROZ8gSTu0gxRaaz77UDbn1ouZTZP3N_-0PcN140U,16564
|
4
|
+
nat/plugins/opentelemetry/otel_span_exporter.py,sha256=YO7JsQgi8Cf2OQBJ_s78HwJjrWx9SdqMvPen3Pa2_bI,6533
|
5
|
+
nat/plugins/opentelemetry/otlp_span_adapter_exporter.py,sha256=6xQHkKDhQk3-kObqj6kRv8ZlJtIV2Qqox6YkY0PCOYs,3945
|
6
|
+
nat/plugins/opentelemetry/otlp_span_redaction_adapter_exporter.py,sha256=qRrUIxYRlCDaAkEGlFTaEkCJCsb68GBo11EGEiE6S8E,7217
|
7
|
+
nat/plugins/opentelemetry/register.py,sha256=KnhV-axY0kJzZ3RReG4e_mTFR1dMr7d3a6ysYiCLTUI,9063
|
8
|
+
nat/plugins/opentelemetry/span_converter.py,sha256=Gz3KvRNQeEBBlpaPO8YRAJkw4fmzV7m9bT6dGX0IV2E,8846
|
9
|
+
nat/plugins/opentelemetry/mixin/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
|
10
|
+
nat/plugins/opentelemetry/mixin/otlp_span_exporter_mixin.py,sha256=3vK6DkTJXp6ZFH3AgNYUuuMOzjyskh_nVUWK-qMYKzM,2809
|
11
|
+
nvidia_nat_opentelemetry-1.4.0a20251008.dist-info/METADATA,sha256=c5dP2cbUBVrNeZiQgvLNQlRpyvYrunWZiFmlRkaV7gg,1733
|
12
|
+
nvidia_nat_opentelemetry-1.4.0a20251008.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
13
|
+
nvidia_nat_opentelemetry-1.4.0a20251008.dist-info/entry_points.txt,sha256=gmEKhCafyibUJLGxbn8luTK0UTgIvV2vAtr4uZ8M85I,72
|
14
|
+
nvidia_nat_opentelemetry-1.4.0a20251008.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
|
15
|
+
nvidia_nat_opentelemetry-1.4.0a20251008.dist-info/RECORD,,
|
@@ -1,15 +0,0 @@
|
|
1
|
-
nat/meta/pypi.md,sha256=_o1o1BLPY1pvjCkklWxlm7LlIDMPCk-2Rho85NUuN8U,1109
|
2
|
-
nat/plugins/opentelemetry/__init__.py,sha256=j-YKuxwSIzGziyDyunw8s_W7WiFiqKLdFjw-utwHPFk,1079
|
3
|
-
nat/plugins/opentelemetry/otel_span.py,sha256=v5Bzy4Cq51Sph5fKErZjt_UPfPXsVJx2qllj7c5afe4,16511
|
4
|
-
nat/plugins/opentelemetry/otel_span_exporter.py,sha256=YO7JsQgi8Cf2OQBJ_s78HwJjrWx9SdqMvPen3Pa2_bI,6533
|
5
|
-
nat/plugins/opentelemetry/otlp_span_adapter_exporter.py,sha256=C5MaZOB_ZijAbRZpRUtjpBsH0-FHeon81l5xAFlUKos,3945
|
6
|
-
nat/plugins/opentelemetry/otlp_span_redaction_adapter_exporter.py,sha256=FPh_wGpI-oYIX5FCDgVQOu9FSyrJ4yUtY-SlaxnL2FE,7217
|
7
|
-
nat/plugins/opentelemetry/register.py,sha256=KnhV-axY0kJzZ3RReG4e_mTFR1dMr7d3a6ysYiCLTUI,9063
|
8
|
-
nat/plugins/opentelemetry/span_converter.py,sha256=Gz3KvRNQeEBBlpaPO8YRAJkw4fmzV7m9bT6dGX0IV2E,8846
|
9
|
-
nat/plugins/opentelemetry/mixin/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
|
10
|
-
nat/plugins/opentelemetry/mixin/otlp_span_exporter_mixin.py,sha256=stTer5KT6l2RA93_pexoU8WqhQLCnYbjyOhIMbDEwWk,2807
|
11
|
-
nvidia_nat_opentelemetry-1.3.0rc1.dist-info/METADATA,sha256=tnyBjnw3QD3hkJp-r_y0QmYrM1Fs9ZVlA5PNNqoB11g,1722
|
12
|
-
nvidia_nat_opentelemetry-1.3.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
13
|
-
nvidia_nat_opentelemetry-1.3.0rc1.dist-info/entry_points.txt,sha256=gmEKhCafyibUJLGxbn8luTK0UTgIvV2vAtr4uZ8M85I,72
|
14
|
-
nvidia_nat_opentelemetry-1.3.0rc1.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
|
15
|
-
nvidia_nat_opentelemetry-1.3.0rc1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|