Skip to content

Commit

Permalink
chore: close mixpanel telemetry for tidb-dashboard op (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
baurine authored Feb 13, 2023
1 parent f318bea commit f8c6175
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Default() *Config {
PublicPathPrefix: defaultPublicPathPrefix,
ClusterTLSConfig: nil,
TiDBTLSConfig: nil,
EnableTelemetry: true,
EnableTelemetry: false,
EnableExperimental: false,
FeatureVersion: version.PDVersion,
}
Expand Down
2 changes: 0 additions & 2 deletions ui/.env.development
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
PORT=3001
PUBLIC_URL='/dashboard'
REACT_APP_VERSION=$npm_package_version
REACT_APP_SENTRY_DSN=https://10930d3b0a8d427cad2147d6d845be56@o226447.ingest.sentry.io/5721090
REACT_APP_SENTRY_ENABLED=false
# REACT_APP_RELEASE_VERSION is set in config-overrides.js
REACT_APP_RELEASE_VERSION=unknown
REACT_APP_MIXPANEL_HOST=https://telemetry.pingcap.com/api/v1/dashboard/report
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/tidb-dashboard-for-op/src/dashboardApp/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ async function webPageStart() {
)
if (info?.enable_telemetry) {
// mixpanel
telemetry.enable(info.version?.internal_version!)
// close mixpanel telemetry for tidb-dashboard op
// telemetry.enable(info.version?.internal_version!)
let preRoute = ''
window.addEventListener('single-spa:routing-event', () => {
const curRoute = routing.getPathInLocationHash()
Expand Down

0 comments on commit f8c6175

Please sign in to comment.