KEMBAR78
fix(phoenix): set project name when using phoenix telemetry exporter (#337) by briancaffey · Pull Request #347 · NVIDIA/NeMo-Agent-Toolkit · GitHub
Skip to content

Conversation

@briancaffey
Copy link
Contributor

This adds a fix for the Phoenix telemetry exporter. Currently it does not use the project name in the configuration. For Phoenix this needs to be set in the TraceProvider like so:

provider = TracerProvider(resource=Resource(attributes={ResourceAttributes.PROJECT_NAME: trace_exporter_config.project}))

where ResourceAttributes.PROJECT_NAME is openinference.project.name.

This allows for traces to be sent to projects other than the default project:

phoenix_projects

This also fixes a typo in the Langsmith telemetry exporter that allows for traces to go to the correct project. (header changed fromLANGSMITH_PROJECT to Langsmith-Project)

Langsmith and Langfuse set their project differently: Langsmith uses a header value (Langsmith-Project and Langfuse uses per-project keys.

This could be problematic if other telemetry exporters also relied on attributes in the TracerProvider to set the project value. It would also not work if there were multiple telemetry.tracing configurations using phoenix defined in a config file. So this might not be an ideal solution, but it should work for simple configurations where you want to use different projects for different configuration files with phoenix.

Description

Closes #337

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 6, 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.

Copy link
Collaborator

@mdemoret-nv mdemoret-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this even though it breaks the plugin encapsulation. We have plans to re-architect the tracing system to be less dependent on OTel in the future which will clean this up. Merging this will solve the problem in the short term

@mdemoret-nv mdemoret-nv added bug Something isn't working non-breaking Non-breaking change labels Jun 6, 2025
@mdemoret-nv
Copy link
Collaborator

@briancaffey Can you do a force push to fix the DCO check and we can get this merged. Thanks!

…VIDIA#337)

Signed-off-by: Brian Caffey <briancaffey2010@gmail.com>
@mdemoret-nv
Copy link
Collaborator

/ok to test 4289c41

@mdemoret-nv
Copy link
Collaborator

/merge

@rapids-bot rapids-bot bot merged commit 89772d9 into NVIDIA:develop Jun 11, 2025
12 checks passed
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
…VIDIA#337) (NVIDIA#347)

Closes NVIDIA#337 

## 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:
  - briancaffey (https://github.com/briancaffey)

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

URL: NVIDIA#347
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
…VIDIA#337) (NVIDIA#347)

Closes NVIDIA#337 

## 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:
  - briancaffey (https://github.com/briancaffey)

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

URL: NVIDIA#347
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]: Phoenix telemetry exporter ignores project value specified in configuration

2 participants