sourcegraph / cody

AI that knows your entire codebase
https://cody.dev
Apache License 2.0
2.22k stars 213 forks source link

update events to have enum numerical values for telemetry recording on `metadata` #4690

Open akalia25 opened 4 days ago

akalia25 commented 4 days ago

This PR updates the event recording process to capture mode, intent, source, completionIntent, etc. as numerical values within the metadata field. This enhancement allows us to record these data points for all instances and not just dotcom while maintaining high security.

Key changes:

Benefits:

Example: In the updated system, the metadata parameter now includes numerical representations for above values (e.g. TriggerKind, intent, etc.) with enum lookups., each derived from their respective enum lookups at the time of telemetry recording.

image

Test plan

CI + Locally