Skip to content

Commit

Permalink
chore: replace segment with ory fork (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Apr 3, 2020
1 parent 4e251e9 commit 77d0b48
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 16 deletions.
12 changes: 10 additions & 2 deletions cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import (
"net/http"
"net/http/httputil"
"sync"
"time"

"github.com/pkg/errors"
"github.com/segmentio/analytics-go"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/urfave/negroni"

"github.com/ory/analytics-go/v4"

"github.com/ory/x/reqlog"

"github.com/ory/viper"
Expand Down Expand Up @@ -177,7 +179,13 @@ 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"},
Config: &analytics.Config{
Endpoint: "https://sqa.ory.sh",
GzipCompressionLevel: 6,
BatchMaxSize: 500 * 1000,
BatchSize: 250,
Interval: time.Hour * 24,
},
},
)

Expand Down
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ require (
github.com/go-openapi/runtime v0.19.5
github.com/go-openapi/strfmt v0.19.3
github.com/go-openapi/swag v0.19.5
github.com/go-sql-driver/mysql v1.4.1
github.com/go-sql-driver/mysql v1.5.0
github.com/go-swagger/go-swagger v0.21.1-0.20200107003254-1c98855b472d
github.com/gobuffalo/httptest v1.0.2
github.com/gobuffalo/packr/v2 v2.0.0-rc.15
github.com/gobuffalo/packr/v2 v2.7.1
github.com/gobwas/glob v0.2.3
github.com/golang/gddo v0.0.0-20190904175337-72a348e765d2
github.com/golang/mock v1.3.1
Expand All @@ -29,8 +29,9 @@ require (
github.com/huandu/xstrings v1.2.0 // indirect
github.com/imdario/mergo v0.3.7
github.com/julienschmidt/httprouter v1.2.0
github.com/lib/pq v1.2.0
github.com/lib/pq v1.3.0
github.com/mattn/goveralls v0.0.5
github.com/ory/analytics-go/v4 v4.0.1
github.com/ory/fosite v0.29.2
github.com/ory/go-acc v0.2.1
github.com/ory/go-convenience v0.1.0
Expand All @@ -41,23 +42,22 @@ require (
github.com/ory/ladon v1.1.0
github.com/ory/sdk/swagutil v0.0.0-20200202121523-307941feee4b
github.com/ory/viper v1.7.4
github.com/ory/x v0.0.109
github.com/ory/x v0.0.111
github.com/pborman/uuid v1.2.0
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.5.0
github.com/spf13/cobra v0.0.6
github.com/spf13/cobra v0.0.7
github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518
github.com/square/go-jose v2.3.1+incompatible
github.com/stretchr/testify v1.4.0
github.com/stretchr/testify v1.5.1
github.com/tidwall/gjson v1.3.5
github.com/tidwall/sjson v1.0.4
github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce
github.com/urfave/negroni v1.0.0
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
golang.org/x/crypto v0.0.0-20200320181102-891825fb96df
golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
golang.org/x/tools v0.0.0-20200325203130-f53864d0dba1
gopkg.in/square/go-jose.v2 v2.3.1
Expand Down
Loading

0 comments on commit 77d0b48

Please sign in to comment.