-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve document for the xrayaws package
- Loading branch information
1 parent
91434d5
commit 30ef470
Showing
5 changed files
with
26 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Package xray provides a simple API for tracing and monitoring AWS X-Ray. | ||
package xray |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Package xrayaws provides AWS X-Ray tracing for AWS SDK for Go v2. | ||
// | ||
// cfg, err := config.LoadDefaultConfig(ctx, xrayaws.WithXRay()) | ||
// if err != nil { | ||
// panic(err) | ||
// } | ||
// svc := dynamodb.NewFromConfig(cfg) | ||
// | ||
// // the following requests are traced. | ||
// dynamo.ListTables(ctx, &dynamodb.ListTablesInput{}) | ||
package xrayaws |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Package xrayaws traces AWS SDK Go requests using AWS X-Ray. | ||
// | ||
// sess := session.Must(session.NewSession()) | ||
// svc := dynamodb.New(sess) | ||
// xrayaws.Client(svc.Client) // install AWS X-Ray tracer | ||
// | ||
// // the following requests are traced. | ||
// dynamo.ListTablesWithContext(ctx, &dynamodb.ListTablesInput{}) | ||
package xrayaws |
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