-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send metrics to cloudwatch #87
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this called
DeploymentID
or we check the env variable current calledINDEXER_DEPLOYMENT_ID
toINDEXER_DEPLOYMENT