diff --git a/log.go b/log.go index 6bbacbd..7408f7e 100644 --- a/log.go +++ b/log.go @@ -16,14 +16,14 @@ const ( ) // CategoryLog is the log flag category. -var CategoryLog = "Logging" +const CategoryLog = "Logging" // LogFlags are flags that configure logging. var LogFlags = Flags{ &cli.StringFlag{ Name: FlagLogFormat, Category: CategoryLog, - Usage: "Specify the format of logs. Supported formats: 'logfmt', 'json', 'console'", + Usage: "Specify the format of logs. Supported formats: 'logfmt', 'json', 'console'.", EnvVars: []string{"LOG_FORMAT"}, }, &cli.StringFlag{ diff --git a/profile.go b/profile.go index 2dde134..e59f1cb 100644 --- a/profile.go +++ b/profile.go @@ -33,14 +33,14 @@ const ( ) // CategoryProfiling is the profiling category. -var CategoryProfiling = "Profiling" +const CategoryProfiling = "Profiling" // ProfilingFlags are flags that configure profiling. var ProfilingFlags = Flags{ &cli.StringFlag{ Name: FlagProfilingDSN, Category: CategoryProfiling, - Usage: "The address to the Pyroscope server, in the format " + + Usage: "The address to the Pyroscope server, in the format: " + "'http://basic:auth@server:port?token=auth-token&tenantid=tenant-id'.", EnvVars: []string{"PROFILING_DSN"}, }, diff --git a/stats.go b/stats.go index 82192ad..d89b04f 100644 --- a/stats.go +++ b/stats.go @@ -27,7 +27,7 @@ const ( ) // CategoryStats is the stats flag category. -var CategoryStats = "Stats" +const CategoryStats = "Stats" // StatsFlags are flags that configure stats. var StatsFlags = Flags{ diff --git a/trace.go b/trace.go index 9e07723..93935c0 100644 --- a/trace.go +++ b/trace.go @@ -27,7 +27,7 @@ const ( ) // CategoryTracing is the tracing flag category. -var CategoryTracing = "Tracing" +const CategoryTracing = "Tracing" // TracingFlags are flags that configure tracing. var TracingFlags = Flags{