File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 9
9
"time"
10
10
11
11
"github.com/google/uuid"
12
+ "github.com/pyroscope-io/pyroscope/pkg/build"
12
13
"github.com/pyroscope-io/pyroscope/pkg/config"
13
14
"github.com/pyroscope-io/pyroscope/pkg/storage"
14
15
"github.com/sirupsen/logrus"
@@ -43,6 +44,7 @@ type Service struct {
43
44
type metrics struct {
44
45
InstallID string `json:"install_id"`
45
46
RunID string `json:"run_id"`
47
+ Version string `json:"version"`
46
48
Timestamp time.Time `json:"timestamp"`
47
49
UploadIndex int `json:"upload_index"`
48
50
GOOS string `json:"goos"`
@@ -90,6 +92,7 @@ func (s *Service) sendReport() {
90
92
m := metrics {
91
93
InstallID : s .s .InstallID (),
92
94
RunID : uuid .New ().String (),
95
+ Version : build .Version ,
93
96
Timestamp : time .Now (),
94
97
UploadIndex : s .uploads ,
95
98
GOOS : runtime .GOOS ,
You can’t perform that action at this time.
0 commit comments