nvidia-nat-opentelemetry 1.3.0rc1__py3-none-any.whl → 1.3.0rc3__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.
@@ -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
- trace_id = uuid.uuid4().int & ((1 << 128) - 1)
90
- span_id = uuid.uuid4().int & ((1 << 64) - 1)
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
- **otlp_kwargs: Additional keyword arguments for the OTLP service.
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
- **otlp_kwargs: Additional keyword arguments for the OTLP service.
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,7 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-opentelemetry
3
- Version: 1.3.0rc1
3
+ Version: 1.3.0rc3
4
4
  Summary: Subpackage for OpenTelemetry integration in NeMo Agent toolkit
5
+ Author: NVIDIA Corporation
6
+ Maintainer: NVIDIA Corporation
7
+ License: Apache-2.0
8
+ Project-URL: documentation, https://docs.nvidia.com/nemo/agent-toolkit/latest/
9
+ Project-URL: source, https://github.com/NVIDIA/NeMo-Agent-Toolkit
5
10
  Keywords: ai,observability,opentelemetry
6
11
  Classifier: Programming Language :: Python
7
12
  Classifier: Programming Language :: Python :: 3.11
@@ -9,10 +14,13 @@ Classifier: Programming Language :: Python :: 3.12
9
14
  Classifier: Programming Language :: Python :: 3.13
10
15
  Requires-Python: <3.14,>=3.11
11
16
  Description-Content-Type: text/markdown
12
- Requires-Dist: nvidia-nat==v1.3.0-rc1
17
+ License-File: LICENSE-3rd-party.txt
18
+ License-File: LICENSE.md
19
+ Requires-Dist: nvidia-nat==v1.3.0-rc3
13
20
  Requires-Dist: opentelemetry-api~=1.2
14
21
  Requires-Dist: opentelemetry-exporter-otlp~=1.3
15
22
  Requires-Dist: opentelemetry-sdk~=1.3
23
+ Dynamic: license-file
16
24
 
17
25
  <!--
18
26
  SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
@@ -0,0 +1,17 @@
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.3.0rc3.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
12
+ nvidia_nat_opentelemetry-1.3.0rc3.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
13
+ nvidia_nat_opentelemetry-1.3.0rc3.dist-info/METADATA,sha256=YvvfpWRDo17kfrEMe83jpfX_dlt730ztWOnLXhGJrbo,2028
14
+ nvidia_nat_opentelemetry-1.3.0rc3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ nvidia_nat_opentelemetry-1.3.0rc3.dist-info/entry_points.txt,sha256=gmEKhCafyibUJLGxbn8luTK0UTgIvV2vAtr4uZ8M85I,72
16
+ nvidia_nat_opentelemetry-1.3.0rc3.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
17
+ nvidia_nat_opentelemetry-1.3.0rc3.dist-info/RECORD,,