Skip to content

Commit

Permalink
misc telemetry work
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Walker-GM committed Feb 9, 2024
1 parent 8551bc7 commit 0d70fc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import (
)

var (
telemetryFlag bool

BuildVersion = "unknown"
BuildCommit = "unknown"
BuildDate = "unknown"
Expand All @@ -36,7 +34,7 @@ var rootCmd = &cobra.Command{
}

func init() {
rootCmd.PersistentFlags().BoolVar(&telemetryFlag, "telemetry", true, "Send telemetry events, see: https://telemetry.redwoodjs.com")
// ...
}

func Execute() {
Expand Down
2 changes: 1 addition & 1 deletion cli/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
const (
RW_DIR_NAME = ".rw"

RW_OTEL_ENDPOINT = "http://localhost:4318/v1/traces"
RW_OTEL_ENDPOINT = "https://quark.quantumparticle.io/v1/traces"
)

// ----------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func main() {
cmd.BuildDate = date
cmd.BuildDate = date

// TODO(jgmw): Support disabling telemetry via an environment variable
// telemetryEnabled := os.Getenv("REDWOOD_DISABLE_TELEMETRY") == ""

// Handle SIGINT gracefully for the telemetry
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
defer stop()
Expand Down

0 comments on commit 0d70fc8

Please sign in to comment.