AWS X-Ray recommends using AWS Distro for OpenTelemetry (ADOT) to instrument your application instead of this X-Ray SDK due to its wider range of features and instrumentations. See the AWS X-Ray docs on Working with Go for more help with choosing between ADOT and X-Ray SDK. Install the SDK using the following command (The SDK's non-testing dependencies will be installed): Use go get to retrieve the SDK to add it to your GOPATH workspace. X-Ray Go SDK will by default generate no-op trace and segment id for unsampled requests and secure random trace and entity id for sampled requests. If customer wants to enable generating secure random trace and entity id for all the (sampled/unsampled) requests (this is applicable for trace id injection into logs use case) then they achieve that by setting AWS_XRAY_NOOP_ID environment variable as False.

Features

  • The AWS X-Ray SDK for Go is compatible with Go 1.9 and above
  • The latest version of the SDK is the recommended version
  • The developer guide provides in-depth guidance on using the AWS X-Ray service and the AWS X-Ray SDK for Go
  • See aws-xray-sdk-go-sample for a sample application that provides example of tracing SQL queries
  • Plugins can be loaded conditionally at runtime
  • Generate no-op trace and segment id

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow AWS X-Ray SDK for Go

AWS X-Ray SDK for Go Web Site

You Might Also Like
The Secure Workspace for Remote Work Icon
The Secure Workspace for Remote Work

Venn isolates and protects work from any personal use on the same computer, whether BYO or company issued.

Venn is a secure workspace for remote work that isolates and protects work from any personal use on the same computer. Work lives in a secure local enclave that is company controlled, where all data is encrypted and access is managed. Within the enclave – visually indicated by the Blue Border around these applications – business activity is walled off from anything that happens on the personal side. As a result, work and personal uses can now safely coexist on the same computer.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of AWS X-Ray SDK for Go!

Additional Project Details

Programming Language

Go

Related Categories

Go Software Development Software

Registered

2022-07-01