File: telemetry_go118.go

package info (click to toggle)
golang-github-cue-lang-cue 0.12.0.-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,072 kB
  • sloc: sh: 57; makefile: 17
file content (44 lines) | stat: -rw-r--r-- 922 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !go1.19
// +build !go1.19

package telemetry

// This file defines dummy implementations of telemetry operations to
// permit building with go1.18. Until we drop support for go1.18,
// gopls may not refer to the telemetry module directly, but must go
// through this file.

func CounterOpen() {}

func StartCrashMonitor() {}

func CrashMonitorSupported() bool { return false }

func NewStackCounter(string, int) dummyCounter { return dummyCounter{} }

type dummyCounter struct{}

func (dummyCounter) Inc() {}

func Mode() string {
	return "local"
}

func SetMode(mode string) error {
	return nil
}

func Upload() {
}

func RecordClientInfo(string) {}

func RecordViewGoVersion(x int) {
}

func AddForwardedCounters(names []string, values []int64) {
}