EchoSrv: Enable auto route tracking for Azure App Insights (#113354)
* Echo: Enable auto route tracking with Azure App Insights * Add server config option to disable auto route tracking * fix not using minified js
This commit is contained in:
+10
-8
@@ -390,14 +390,15 @@ type Cfg struct {
|
||||
LocalFileSystemAvailable bool
|
||||
|
||||
// Analytics
|
||||
CheckForGrafanaUpdates bool
|
||||
CheckForPluginUpdates bool
|
||||
ReportingDistributor string
|
||||
ReportingEnabled bool
|
||||
ApplicationInsightsConnectionString string
|
||||
ApplicationInsightsEndpointUrl string
|
||||
FeedbackLinksEnabled bool
|
||||
ReportingStaticContext map[string]string
|
||||
CheckForGrafanaUpdates bool
|
||||
CheckForPluginUpdates bool
|
||||
ReportingDistributor string
|
||||
ReportingEnabled bool
|
||||
ApplicationInsightsConnectionString string
|
||||
ApplicationInsightsEndpointUrl string
|
||||
ApplicationInsightsAutoRouteTracking bool
|
||||
FeedbackLinksEnabled bool
|
||||
ReportingStaticContext map[string]string
|
||||
|
||||
// Frontend analytics
|
||||
GoogleAnalyticsID string
|
||||
@@ -1273,6 +1274,7 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
|
||||
|
||||
cfg.ApplicationInsightsConnectionString = analytics.Key("application_insights_connection_string").String()
|
||||
cfg.ApplicationInsightsEndpointUrl = analytics.Key("application_insights_endpoint_url").String()
|
||||
cfg.ApplicationInsightsAutoRouteTracking = analytics.Key("application_insights_connection_string").MustBool(true)
|
||||
cfg.FeedbackLinksEnabled = analytics.Key("feedback_links_enabled").MustBool(true)
|
||||
|
||||
// parse reporting static context string of key=value, key=value pairs into an object
|
||||
|
||||
Reference in New Issue
Block a user