https://www.boundaryml.com logo
In case anyone is looking for a “baml
# suggestions
b
In case anyone is looking for a “baml Friday” project, my biggest feature request right now is being able to dynamically set headers or otherwise attach metadata to a request that can be read by the collector. The collector is global and runs in a separate thread, but predictions run in the main event loop and have important metadata (like the logged in user) that would be really helpful for us
a
Could you give us a basic example of how you'd like the API to look like for that feature?
a
what if you were able to get the tags for that function's context thru the collector? https://docs.boundaryml.com/guide/boundary-cloud/observability/tracking-usage
collector.last.tags
b
Ooohh yes @aaronv (BAML) that could work depending on how it tracks the calls. For example if I’m making many async requests, and I’m making a separate ‘set_tags’ call, how will it connect the tags to the specific call? @Antonio Sarosi (BAML 🐑) I think something inside of the baml_options dict, like if I could pass the tags Aaron mentioned into the options, and that got saved by the collector. That would be perfect. Btw, if the data for my traces could live in my environment instead of boundary’s I would just use your observability 🙂
a
with many async requests you would need to call set_tags separately in each different async context and it should work. But probably the simplest thing is to also be able to pass tags in baml_options
and heard! we do want to make it on-prem / selfhostable
b
Passing into baml_options would certainly be my favorite option!