From c3bf1b1964a14be4cc296aae98d0739e65917e18 Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Tue, 24 Mar 2020 17:55:14 +0100 Subject: [PATCH] fix: move to ory sqa service (#159) --- cmd/server/serve.go | 5 +++++ go.mod | 1 + go.sum | 4 ---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/server/serve.go b/cmd/server/serve.go index 69a61cd1b..2dc911a45 100644 --- a/cmd/server/serve.go +++ b/cmd/server/serve.go @@ -25,6 +25,8 @@ import ( "crypto/tls" "net/http" + "github.com/segmentio/analytics-go" + "github.com/ory/keto/driver" "github.com/ory/x/logrusx" @@ -85,6 +87,9 @@ func RunServe( BuildVersion: version, BuildTime: date, BuildHash: commit, + Config: &analytics.Config{ + Endpoint: "https://sqa.ory.sh", + }, }, ) n.Use(metrics) diff --git a/go.mod b/go.mod index 82f1c3846..0eec228b9 100644 --- a/go.mod +++ b/go.mod @@ -32,6 +32,7 @@ require ( github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a // indirect github.com/rs/cors v1.6.0 github.com/rubenv/sql-migrate v0.0.0-20190327083759-54bad0a9b051 + github.com/segmentio/analytics-go v3.0.1+incompatible github.com/sirupsen/logrus v1.4.2 github.com/spf13/cobra v0.0.5 github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518 diff --git a/go.sum b/go.sum index fcec7ccb1..d954e3d62 100644 --- a/go.sum +++ b/go.sum @@ -581,10 +581,6 @@ github.com/ory/graceful v0.1.1 h1:zx+8tDObLPrG+7Tc8jKYlXsqWnLtOQA1IZ/FAAKHMXU= github.com/ory/graceful v0.1.1/go.mod h1:zqu70l95WrKHF4AZ6tXHvAqAvpY6M7g6ttaAVcMm7KU= github.com/ory/herodot v0.6.2 h1:zOb5MsuMn7AH9/Ewc/EK83yqcNViK1m1l3C2UuP3RcA= github.com/ory/herodot v0.6.2/go.mod h1:3BOneqcyBsVybCPAJoi92KN2BpJHcmDqAMcAAaJiJow= -github.com/ory/sdk/swagutil v0.0.0-20200113182044-f6518ab8017d h1:AVIzsXij0v8DoVLAZw9Yo7RXVhM0H53ql3DosRkH5rg= -github.com/ory/sdk/swagutil v0.0.0-20200113182044-f6518ab8017d/go.mod h1:Ufg1eAyz+Zt3+oweSZVThG13ewewWCKwBmoNmK8Z0co= -github.com/ory/sdk/swagutil v0.0.0-20200131170418-ead0c2285f93 h1:+QLNv/tFJbwIpJ7fYGx07G0+IxO8FhhyaVGVkX6RAFM= -github.com/ory/sdk/swagutil v0.0.0-20200131170418-ead0c2285f93/go.mod h1:Ufg1eAyz+Zt3+oweSZVThG13ewewWCKwBmoNmK8Z0co= github.com/ory/sdk/swagutil v0.0.0-20200202121523-307941feee4b h1:xn3WcZ8Oy285KYiCnoscQxkyRfJZT+KhIbU9LEhPLyw= github.com/ory/sdk/swagutil v0.0.0-20200202121523-307941feee4b/go.mod h1:Ufg1eAyz+Zt3+oweSZVThG13ewewWCKwBmoNmK8Z0co= github.com/ory/viper v1.5.6 h1:w4ceGgWwWLzAFYQ7bHaDZmwNsAto2JPVdyQjQnn7VWI=