public void EnableMetrics(string uniqueAttributeName = BacktraceMetrics.DefaultUniqueAttributeName)
        {
            var universeName = Configuration.GetUniverseName();
            var token        = Configuration.GetToken();

            EnableMetrics(
                BacktraceMetrics.GetDefaultUniqueEventsUrl(universeName, token),
                BacktraceMetrics.GetDefaultSummedEventsUrl(universeName, token),
                Configuration.GetEventAggregationIntervalTimerInMs(),
                uniqueAttributeName);
        }
Example #2
0
        private void EnableMetrics(bool enableIfConfigurationIsDisabled = true)
        {
            if (!Configuration.EnableMetricsSupport)
            {
                if (!enableIfConfigurationIsDisabled)
                {
                    return;
                }
                Debug.LogWarning("Event aggregation configuration was disabled. Enabling it manually via API");
            }
            var universeName = Configuration.GetUniverseName();
            var token        = Configuration.GetToken();

            EnableMetrics(
                BacktraceMetrics.GetDefaultUniqueEventsUrl(universeName, token),
                BacktraceMetrics.GetDefaultSummedEventsUrl(universeName, token),
                Configuration.GetEventAggregationIntervalTimerInMs());
        }