feat: set assignments in BillingEventContext
What does this merge request do and why?
Follow-up to !3642 (merged). See !3642 (comment 2867214908)
How to set up and validate locally
- Enable snowplow micro.
- Set
export GITLAB_SIMULATE_SAAS=1in your gdk root'senv.runit - Restart your GDK
- Enable billing events with below env variable in
.envin AI Gateway
# Billing Events
AIGW_BILLING_EVENT__ENABLED=true
AIGW_BILLING_EVENT__ENDPOINT=http://localhost:9091 # snowplow micro url
AIGW_BILLING_EVENT__NAMESPACE=gl
AIGW_BILLING_EVENT__BATCH_SIZE=1
AIGW_BILLING_EVENT__THREAD_COUNT=1
- Make an agentic chat request, then check on http://localhost:9091/micro/good for a
duo_agent_platform_workflow_completionevent and make sure the fieldassignmentsexists and has a non-empty value
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed. -
If this change requires executor implementation: verified that issues/MRs exist for both Go executor and Node executor or confirmed that changes are backward-compatible and don't break existing executor functionality.