Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d085a1e

Browse files
committed
Just move into a simple env check for now
1 parent 432bb96 commit d085a1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/start.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ func start() *cobra.Command {
5757
root := &cobra.Command{
5858
Use: "start",
5959
RunE: func(cmd *cobra.Command, args []string) error {
60-
tracer.Start()
61-
defer tracer.Stop()
60+
if os.Getenv("CODER_TRACE_DATADOG") == "true" {
61+
tracer.Start()
62+
defer tracer.Stop()
63+
}
6264

6365
printLogo(cmd)
6466
if postgresURL == "" {

0 commit comments

Comments
 (0)