How to load traces in another project than default? #2745
-
I thought the name constructor was used for that, but digging into the source code it wasn't phoenix/src/phoenix/trace/trace_dataset.py Lines 139 to 140 in 46be32b I don't see a way to add the spans to the correct project, is there a way to do so? phoenix/src/phoenix/session/session.py Lines 134 to 140 in 46be32b |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hey there, @remiconnesson! Great to see you diving into the details of Arize Phoenix again. Hope you've been doing well! Based on the information you've provided and the context from similar threads, it seems like you're trying to assign spans to a specific project other than the default one in Arize Phoenix. To achieve this, you can use the with using_project('your_project_name'):
# Your code to create spans goes here
# All spans created in this block will be associated with 'your_project_name' When you enter the This approach is particularly useful in notebook environments where you might want to dynamically assign spans to different projects for testing or demonstration purposes. However, as noted in the context manager's documentation, this method should not be used in production environments or complex OpenTelemetry setups due to the potential for unexpected behavior. You can find more details about this in the projects.py file. As for storing and retrieving traces for each project, the Arize Phoenix repository handles this through the I hope this helps! If you have any more questions or need further clarification, feel free to ask. Sources
|
Beta Was this translation helpful? Give feedback.
-
Hi @remiconnesson that's correct that there is no way to associate a trace dataset at the current moment to a project. Sorry about that - we can definitely add this but we are actually in the midst of adding actual persistence to the application itself so we probably won't tackle this immediately. Thanks for the feedback - totally think I understand your need and if you file a ticket we will definitely prioritize it and find someone to work on it in the near future. |
Beta Was this translation helpful? Give feedback.
-
Nope don't worry, @mikeldking I'll pour everythin in default and add an tag for the project in the metadata or somewhere in the meantime. |
Beta Was this translation helpful? Give feedback.
Hi @remiconnesson that's correct that there is no way to associate a trace dataset at the current moment to a project. Sorry about that - we can definitely add this but we are actually in the midst of adding actual persistence to the application itself so we probably won't tackle this immediately. Thanks for the feedback - totally think I understand your need and if you file a ticket we will definitely prioritize it and find someone to work on it in the near future.