-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
570 additions
and
425 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
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,9 +1,12 @@ | ||
module github.com/newrelic/go-agent/v3/integrations/nramqp | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
toolchain go1.22.6 | ||
|
||
require ( | ||
github.com/newrelic/go-agent/v3 v3.33.1 | ||
github.com/rabbitmq/amqp091-go v1.9.0 | ||
) | ||
|
||
replace github.com/newrelic/go-agent/v3 => ../.. |
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,15 +1,16 @@ | ||
module github.com/newrelic/go-agent/v3/integrations/nrawsbedrock | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
toolchain go1.22.6 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go-v2 v1.26.0 | ||
github.com/aws/aws-sdk-go-v2/config v1.27.4 | ||
github.com/aws/aws-sdk-go-v2/service/bedrock v1.7.3 | ||
github.com/aws/aws-sdk-go-v2/service/bedrockruntime v1.7.1 | ||
github.com/google/uuid v1.3.0 | ||
github.com/google/uuid v1.6.0 | ||
github.com/newrelic/go-agent/v3 v3.33.1 | ||
) | ||
|
||
|
||
replace github.com/newrelic/go-agent/v3 => ../.. |
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
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,26 +1,18 @@ | ||
# com_newrelic_trace_v1 | ||
|
||
To generate the `v1.pb.go` code, run the following from the top level | ||
`github.com/newrelic/go-agent` package: | ||
`github.com/newrelic/go-agent/v3` package: | ||
|
||
``` | ||
protoc --go_out=paths=source_relative,plugins=grpc:. v3/internal/com_newrelic_trace_v1/v1.proto | ||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative v3/internal/com_newrelic_trace_v1/v1.proto | ||
``` | ||
|
||
Be mindful which version of `protoc-gen-go` you are using. Upgrade | ||
`protoc-gen-go` to the latest with: | ||
|
||
``` | ||
go get -u github.com/golang/protobuf/protoc-gen-go | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | ||
``` | ||
|
||
## When you regenerate the file | ||
|
||
Once you have generated the code, you will need to add a build tag to the file: | ||
|
||
```go | ||
// +build go1.9 | ||
``` | ||
|
||
This is because the gRPC/Protocol Buffer libraries only support Go 1.9 and | ||
above. | ||
https://grpc.io/docs/languages/go/quickstart/ |
Oops, something went wrong.