Skip to content

Camelize keys of Snowplow Micro options object

Eugie Limpin requested to merge fix-snowplow-micro-options into master

What does this MR do and why?

When initializing Snowplow Micro in the frontend, forceSecureTracker should bet set to false so the event request protocol used is http. However, Gitlab::Tracking::Destinations::SnowplowMicro#options currently returns force_secure_tracker (snake_case) instead of forceSecureTracker (camelCase) so forceSecureTracker default option in the frontend is not overriden correctly when Snowplow tracker is initialized.

This MR updates Gitlab::Tracking::Destinations::SnowplowMicro#options to transform the returned object keys to camel case in order to fix the aforementioned problem.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eugie Limpin

Merge request reports