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

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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