KEMBAR78
Fix AttributeError bug for otel_telemetry_exporter by ZhongxuanWang · Pull Request #335 · NVIDIA/NeMo-Agent-Toolkit · GitHub
Skip to content

Conversation

@ZhongxuanWang
Copy link
Contributor

Description

Closes #320

The otel_telemetry_exporter function was changed to resolve a potential AttributeError. The previous implementation used a class that is not found in the OpenTelemetry's submodule.

I've also tried the tracing tool otelcol that I made sure can invoke this method explicitly, and after the change it seems that it's working fine.

The reason I used the HTTP-based OTLP exporter here is previous examples (Langfuse and Langsmith) all used the HTTP-based OTLP explicitly. HTTP should also be more broadly accepted and compatible in this case.

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
    • Any contribution which contains commits that are not Signed-Off will not be accepted.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Jun 1, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: zhongxuanwang <cndanielwang@gmail.com>
Signed-off-by: zhongxuanwang <cndanielwang@gmail.com>
@mdemoret-nv mdemoret-nv added bug Something isn't working non-breaking Non-breaking change labels Jun 6, 2025
@mdemoret-nv
Copy link
Collaborator

/ok to test 68434ca

@mdemoret-nv
Copy link
Collaborator

/ok to test aff0ae1

@mdemoret-nv
Copy link
Collaborator

/merge

@rapids-bot rapids-bot bot merged commit 0d09942 into NVIDIA:develop Jun 10, 2025
12 checks passed
@ZhongxuanWang ZhongxuanWang deleted the second_pr branch June 10, 2025 18:09
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
Closes NVIDIA#320 

The `otel_telemetry_exporter` function was changed to resolve a potential `AttributeError`. The previous implementation used a class that is not found in the OpenTelemetry's submodule. 

I've also tried the tracing tool `otelcol` that I made sure can invoke this method explicitly, and after the change it seems that it's working fine.

The reason I used the HTTP-based OTLP exporter here is previous examples (`Langfuse` and `Langsmith`) all used the HTTP-based OTLP explicitly. HTTP should also be more broadly accepted and compatible in this case.


## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AIQToolkit/blob/develop/docs/source/resources/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Zhongxuan (Daniel) Wang (https://github.com/ZhongxuanWang)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: NVIDIA#335
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
Closes NVIDIA#320 

The `otel_telemetry_exporter` function was changed to resolve a potential `AttributeError`. The previous implementation used a class that is not found in the OpenTelemetry's submodule. 

I've also tried the tracing tool `otelcol` that I made sure can invoke this method explicitly, and after the change it seems that it's working fine.

The reason I used the HTTP-based OTLP exporter here is previous examples (`Langfuse` and `Langsmith`) all used the HTTP-based OTLP explicitly. HTTP should also be more broadly accepted and compatible in this case.


## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AIQToolkit/blob/develop/docs/source/resources/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Zhongxuan (Daniel) Wang (https://github.com/ZhongxuanWang)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: NVIDIA#335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Using otelcollector for tracing in config throws error

2 participants