https://www.boundaryml.com logo
Can traces be filtered by key? I want to
# studio-beta-feedback
v
Can traces be filtered by API KEY? I want to achieve separation between production and test environments, but I don't want to create two projects.
a
What if we allowed you to set a STAGE env var to filter this? Also do you want to use the same env var between prod and dev?
You would need to tag all your traces with your own stage: xyz, and then you can filter based on tag. The tag filter is a bit broken but it works if you search on the searchbar (we search tag values)
I meant do you want to share the same api key?
v
I use Vercel environment variables to manage API keys. Vercel can specify different environment variables for different branches, so I can accept using different API keys. This way, I don't need to modify any code.
a
Ah interesting. Yeah let me know how you would like to denote different environments. The tag approach could definitely work
a
Btw is the multiple project thing just too annoying? Like you kinda want to compare prod vs test on the same ui?
v
Yes, I've thought about doing something similar to A/B testing, observing which set of data is better by comparing multiple groups, similar to how BAML Playground runs multiple tests on the same function and then compares the results.
a
I see