Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-proxy/pkg/analytics/analytics.go
2500 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package analytics
6
7
import (
8
"github.com/gitpod-io/gitpod/common-go/analytics"
9
)
10
11
var writer analytics.Writer = analytics.NewFromEnvironment()
12
13
func Identify(message analytics.IdentifyMessage) {
14
writer.Identify(message)
15
}
16
func Track(message analytics.TrackMessage) {
17
writer.Track(message)
18
}
19
func Close() error {
20
return writer.Close()
21
}
22
23