Additional internal event properties handling
All threads resolved!
All threads resolved!
Compare changes
There are no changes yet
No changes between version 7 and version 7
Related to #434504 (closed)
Make it possible to pass property, value & label to InternalEvents.
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
Gitlab::InternalEvents.track_event('user_viewed_dashboard_list', user: User.first, additional_properties: { label: 'event_label', property: 'event_prop', value: 123 })
localhost:9090/micro/good
internal_event_instrumentation/quick_start.md
file, add a properties
section to a new or an existing event file. For example, add this segment into the user_viewed_dashboard_list.yml file:properties:
user_role:
external_key: label
reload!
in the consoleGitlab::InternalEvents.track_event('user_viewed_dashboard_list', user: User.first, additional_properties: { user_role: 'admin', value: 14 })
localhost:9090/micro/good
No changes between version 7 and version 7