Skip to content

Commit 2a08f1a

Browse files
authored
fix: categories types (#261)
1 parent 3f5bbc4 commit 2a08f1a

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

log.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ const (
1616
)
1717

1818
// CategoryLog is the log flag category.
19-
var CategoryLog = "Logging"
19+
const CategoryLog = "Logging"
2020

2121
// LogFlags are flags that configure logging.
2222
var LogFlags = Flags{
2323
&cli.StringFlag{
2424
Name: FlagLogFormat,
2525
Category: CategoryLog,
26-
Usage: "Specify the format of logs. Supported formats: 'logfmt', 'json', 'console'",
26+
Usage: "Specify the format of logs. Supported formats: 'logfmt', 'json', 'console'.",
2727
EnvVars: []string{"LOG_FORMAT"},
2828
},
2929
&cli.StringFlag{

profile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const (
3333
)
3434

3535
// CategoryProfiling is the profiling category.
36-
var CategoryProfiling = "Profiling"
36+
const CategoryProfiling = "Profiling"
3737

3838
// ProfilingFlags are flags that configure profiling.
3939
var ProfilingFlags = Flags{
4040
&cli.StringFlag{
4141
Name: FlagProfilingDSN,
4242
Category: CategoryProfiling,
43-
Usage: "The address to the Pyroscope server, in the format " +
43+
Usage: "The address to the Pyroscope server, in the format: " +
4444
"'http://basic:auth@server:port?token=auth-token&tenantid=tenant-id'.",
4545
EnvVars: []string{"PROFILING_DSN"},
4646
},

stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
)
2828

2929
// CategoryStats is the stats flag category.
30-
var CategoryStats = "Stats"
30+
const CategoryStats = "Stats"
3131

3232
// StatsFlags are flags that configure stats.
3333
var StatsFlags = Flags{

trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
)
2828

2929
// CategoryTracing is the tracing flag category.
30-
var CategoryTracing = "Tracing"
30+
const CategoryTracing = "Tracing"
3131

3232
// TracingFlags are flags that configure tracing.
3333
var TracingFlags = Flags{

0 commit comments

Comments
 (0)