Skip to content

Commit

Permalink
fix: replace segment with our own sqa endpoint (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Mar 24, 2020
1 parent a76f749 commit 8f63eda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"sync"

"github.com/pkg/errors"
"github.com/segmentio/analytics-go"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/urfave/negroni"
Expand Down Expand Up @@ -161,7 +162,7 @@ func RunServe(version, build, date string) func(cmd *cobra.Command, args []strin
metrics := metricsx.New(cmd, logger,
&metricsx.Options{
Service: "ory-oathkeeper",
ClusterID: clusterID(d.Configuration()),
ClusterID: metricsx.Hash(clusterID(d.Configuration())),
IsDevelopment: isDevelopment(d.Configuration()),
WriteKey: "xRVRP48SAKw6ViJEnvB0u2PY8bVlsO6O",
WhitelistedPaths: []string{
Expand All @@ -176,6 +177,7 @@ func RunServe(version, build, date string) func(cmd *cobra.Command, args []strin
BuildVersion: version,
BuildTime: build,
BuildHash: date,
Config: &analytics.Config{Endpoint: "https://sqa.ory.sh"},
},
)

Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ require (
github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
github.com/pkg/errors v0.9.1
github.com/rs/cors v1.6.0
github.com/segmentio/analytics-go v3.1.0+incompatible
github.com/sirupsen/logrus v1.4.2
github.com/spf13/cobra v0.0.5
github.com/spf13/pflag v1.0.5 // indirect
Expand Down

0 comments on commit 8f63eda

Please sign in to comment.