-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from nyaruka/cloudwatch
Send metrics to cloudwatch
- Loading branch information
Showing
7 changed files
with
156 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
env: | ||
go-version: "1.22.x" | ||
go-version: "1.23.x" | ||
jobs: | ||
test: | ||
name: Test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,51 @@ | ||
module github.com/nyaruka/rp-indexer/v9 | ||
|
||
go 1.22 | ||
go 1.23 | ||
|
||
require ( | ||
github.com/getsentry/sentry-go v0.28.1 | ||
github.com/aws/aws-sdk-go-v2 v1.32.6 | ||
github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.43.3 | ||
github.com/getsentry/sentry-go v0.30.0 | ||
github.com/lib/pq v1.10.9 | ||
github.com/nyaruka/ezconf v0.3.0 | ||
github.com/nyaruka/gocommon v1.55.8 | ||
github.com/samber/slog-multi v1.2.0 | ||
github.com/nyaruka/gocommon v1.60.1 | ||
github.com/samber/slog-multi v1.2.4 | ||
github.com/samber/slog-sentry v1.2.2 | ||
github.com/stretchr/testify v1.9.0 | ||
github.com/stretchr/testify v1.10.0 | ||
) | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go-v2/config v1.28.6 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.47 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.21 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.25 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.25 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2 // indirect | ||
github.com/aws/smithy-go v1.22.1 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/fatih/structs v1.1.0 // indirect | ||
github.com/gabriel-vasile/mimetype v1.4.4 // indirect | ||
github.com/gabriel-vasile/mimetype v1.4.7 // indirect | ||
github.com/go-chi/chi/v5 v5.1.0 // indirect | ||
github.com/gorilla/websocket v1.5.3 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/kylelemons/godebug v1.1.0 // indirect | ||
github.com/naoina/go-stringutil v0.1.0 // indirect | ||
github.com/naoina/toml v0.1.1 // indirect | ||
github.com/nyaruka/librato v1.1.1 // indirect | ||
github.com/nyaruka/null/v2 v2.0.3 // indirect | ||
github.com/nyaruka/phonenumbers v1.4.0 // indirect | ||
github.com/nyaruka/phonenumbers v1.4.3 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/samber/lo v1.46.0 // indirect | ||
github.com/samber/lo v1.47.0 // indirect | ||
github.com/shopspring/decimal v1.4.0 // indirect | ||
golang.org/x/exp v0.0.0-20240716175740-e3f259677ff7 // indirect | ||
golang.org/x/net v0.27.0 // indirect | ||
golang.org/x/sys v0.22.0 // indirect | ||
golang.org/x/text v0.16.0 // indirect | ||
google.golang.org/protobuf v1.34.2 // indirect | ||
golang.org/x/exp v0.0.0-20241210194714-1829a127f884 // indirect | ||
golang.org/x/net v0.32.0 // indirect | ||
golang.org/x/sys v0.28.0 // indirect | ||
golang.org/x/text v0.21.0 // indirect | ||
google.golang.org/protobuf v1.35.2 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
package runtime | ||
|
||
import "database/sql" | ||
import ( | ||
"database/sql" | ||
|
||
"github.com/nyaruka/gocommon/aws/cwatch" | ||
) | ||
|
||
type Runtime struct { | ||
Config *Config | ||
DB *sql.DB | ||
CW *cwatch.Service | ||
} |