-
Notifications
You must be signed in to change notification settings - Fork 396
fix(phoenix): set project name when using phoenix telemetry exporter (#337) #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
|
@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>
|
/ok to test 4289c41 |
|
/merge |
…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
…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
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:
where
ResourceAttributes.PROJECT_NAMEisopeninference.project.name.This allows for traces to be sent to projects other than the default project:
This also fixes a typo in the Langsmith telemetry exporter that allows for traces to go to the correct project. (header changed from
LANGSMITH_PROJECTtoLangsmith-Project)Langsmith and Langfuse set their
projectdifferently: Langsmith uses a header value (Langsmith-Projectand Langfuse uses per-project keys.This could be problematic if other telemetry exporters also relied on
attributesin theTracerProviderto set the project value. It would also not work if there were multipletelemetry.tracingconfigurations 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: