Skip to content

Commit ed330d0

Browse files
authored
feat(telemetry): add cli edition variable (#2485)
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 20743ae commit ed330d0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/cli/cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ func recordCommand(executedCmd *cobra.Command, authInfo *token.ParsedToken) erro
409409

410410
tags := telemetry.Tags{
411411
"cli_version": Version,
412+
"edition": Edition,
412413
"cp_url_hash": controlplaneHash,
413414
"cp_installation_url": controlplaneURL,
414415
"chainloop_source": "cli",

app/cli/cmd/version.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ import (
2929
)
3030

3131
const devVersion = "dev"
32+
const ossEdition = "oss"
3233

33-
var Version = devVersion
34+
var (
35+
Version = devVersion
36+
Edition = ossEdition
37+
)
3438

3539
type info struct {
3640
Version string

0 commit comments

Comments
 (0)