Skip to content

Commit 5fb4d3a

Browse files
authored
Fix for v2 release, update workflows/tests (#494)
1 parent cb4ce55 commit 5fb4d3a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+82
-82
lines changed

.github/workflows/IntegrationTesting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: rsync -r * sample-apps/http-server/aws-xray-sdk-go --exclude sample-apps/
2626

2727
- name: The application.go file must be at the working directory level in EB Go. We need to change the redirection to the folder we copied in the previous step.
28-
run: sed -i 's|replace github.com/aws/aws-xray-sdk-go => ../../|replace github.com/aws/aws-xray-sdk-go => ./aws-xray-sdk-go|g' go.mod
28+
run: sed -i 's|replace github.com/aws/aws-xray-sdk-go/v2 => ../../|replace github.com/aws/aws-xray-sdk-go/v2 => ./aws-xray-sdk-go|g' go.mod
2929
working-directory: ./sample-apps/http-server
3030

3131
- name: Zip up the deployment package

awsplugins/beanstalk/beanstalk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"encoding/json"
1313
"io/ioutil"
1414

15-
"github.com/aws/aws-xray-sdk-go/internal/logger"
16-
"github.com/aws/aws-xray-sdk-go/internal/plugins"
15+
"github.com/aws/aws-xray-sdk-go/v2/internal/logger"
16+
"github.com/aws/aws-xray-sdk-go/v2/internal/plugins"
1717
)
1818

1919
// Origin is the type of AWS resource that runs your application.

awsplugins/ec2/ec2.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"encoding/json"
1414
"net/http"
1515

16-
"github.com/aws/aws-xray-sdk-go/internal/logger"
17-
"github.com/aws/aws-xray-sdk-go/internal/plugins"
16+
"github.com/aws/aws-xray-sdk-go/v2/internal/logger"
17+
"github.com/aws/aws-xray-sdk-go/v2/internal/plugins"
1818
)
1919

2020
// Origin is the type of AWS resource that runs your application.
@@ -27,7 +27,7 @@ type metadata struct {
2727
InstanceType string
2828
}
2929

30-
//Init activates EC2Plugin at runtime.
30+
// Init activates EC2Plugin at runtime.
3131
func Init() {
3232
if plugins.InstancePluginMetadata != nil && plugins.InstancePluginMetadata.EC2Metadata == nil {
3333
addPluginMetadata(plugins.InstancePluginMetadata)

awsplugins/ecs/ecs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ package ecs
1111
import (
1212
"os"
1313

14-
"github.com/aws/aws-xray-sdk-go/internal/logger"
15-
"github.com/aws/aws-xray-sdk-go/internal/plugins"
14+
"github.com/aws/aws-xray-sdk-go/v2/internal/logger"
15+
"github.com/aws/aws-xray-sdk-go/v2/internal/plugins"
1616
)
1717

1818
// Origin is the type of AWS resource that runs your application.

daemoncfg/daemon_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strconv"
1515
"strings"
1616

17-
"github.com/aws/aws-xray-sdk-go/internal/logger"
17+
"github.com/aws/aws-xray-sdk-go/v2/internal/logger"
1818
"github.com/pkg/errors"
1919
)
2020

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/aws/aws-xray-sdk-go
1+
module github.com/aws/aws-xray-sdk-go/v2
22

33
go 1.19
44

instrumentation/awsv2/awsv2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
"context"
1313

1414
v2Middleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
15-
"github.com/aws/aws-xray-sdk-go/xray"
1615
"github.com/aws/smithy-go/middleware"
1716
smithyhttp "github.com/aws/smithy-go/transport/http"
17+
"github.com/aws/aws-xray-sdk-go/v2/xray"
1818
)
1919

2020
// RequestIDKey is the key name of the request id.

instrumentation/awsv2/awsv2_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"github.com/aws/aws-sdk-go-v2/aws"
2222
"github.com/aws/aws-sdk-go-v2/service/route53"
2323
"github.com/aws/aws-sdk-go-v2/service/route53/types"
24-
"github.com/aws/aws-xray-sdk-go/strategy/ctxmissing"
25-
"github.com/aws/aws-xray-sdk-go/xray"
24+
"github.com/aws/aws-xray-sdk-go/v2/strategy/ctxmissing"
25+
"github.com/aws/aws-xray-sdk-go/v2/xray"
2626
)
2727

2828
func TestAWSV2(t *testing.T) {

integration-tests/distributioncheck/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module distributioncheck
22

3-
replace github.com/aws/aws-xray-sdk-go => ../../
3+
replace github.com/aws/aws-xray-sdk-go/v2 => ../../
44

55
require (
6-
github.com/aws/aws-xray-sdk-go v1.8.0
6+
github.com/aws/aws-xray-sdk-go/v2 v2.0.0
77
github.com/stretchr/testify v1.8.4
88
)
99

integration-tests/distributioncheck/sanity_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"context"
1313
"testing"
1414

15-
"github.com/aws/aws-xray-sdk-go/xray"
15+
"github.com/aws/aws-xray-sdk-go/v2/xray"
1616
"github.com/stretchr/testify/assert"
1717
)
1818

0 commit comments

Comments
 (0)