Skip to content
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

Add v5 to module path #248

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/backends.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package backend

import "github.com/buildkite/buildkite-agent-metrics/collector"
import "github.com/buildkite/buildkite-agent-metrics/v5/collector"

// Backend is a receiver of metrics
type Backend interface {
Expand Down
2 changes: 1 addition & 1 deletion backend/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
)

// CloudWatchDimension is a dimension to add to metrics
Expand Down
2 changes: 1 addition & 1 deletion backend/newrelic.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
newrelic "github.com/newrelic/go-agent"
)

Expand Down
2 changes: 1 addition & 1 deletion backend/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"regexp"
"strings"

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down
2 changes: 1 addition & 1 deletion backend/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"github.com/google/go-cmp/cmp"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"
Expand Down
2 changes: 1 addition & 1 deletion backend/stackdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"google.golang.org/genproto/googleapis/api/label"
"google.golang.org/protobuf/types/known/timestamppb"

Expand Down
2 changes: 1 addition & 1 deletion backend/statsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/DataDog/datadog-go/statsd"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
)

// StatsD sends metrics to StatsD (Datadog spec)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/buildkite/buildkite-agent-metrics
module github.com/buildkite/buildkite-agent-metrics/v5

go 1.20

Expand Down
8 changes: 4 additions & 4 deletions lambda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"github.com/aws/aws-sdk-go/service/secretsmanager"
"github.com/aws/aws-sdk-go/service/ssm"

"github.com/buildkite/buildkite-agent-metrics/backend"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/token"
"github.com/buildkite/buildkite-agent-metrics/version"
"github.com/buildkite/buildkite-agent-metrics/v5/backend"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/token"
"github.com/buildkite/buildkite-agent-metrics/v5/version"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"time"

"github.com/buildkite/buildkite-agent-metrics/backend"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/version"
"github.com/buildkite/buildkite-agent-metrics/v5/backend"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/version"
)

// Where we send metrics
Expand Down
2 changes: 1 addition & 1 deletion token/secretsmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/secretsmanager"
"github.com/buildkite/buildkite-agent-metrics/token/mock"
"github.com/buildkite/buildkite-agent-metrics/v5/token/mock"
"github.com/golang/mock/gomock"
)

Expand Down
2 changes: 1 addition & 1 deletion token/ssm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ssm"
"github.com/buildkite/buildkite-agent-metrics/token/mock"
"github.com/buildkite/buildkite-agent-metrics/v5/token/mock"
"github.com/golang/mock/gomock"
)

Expand Down