Documentation

Overview

    Package aws provides functions to trace aws/aws-sdk-go (https://github.com/aws/aws-sdk-go).

    Example

      To start tracing requests, wrap the AWS session.Session by invoking awstrace.WrapSession.

      Output:
      
      

      Index

      Examples

      Constants

      This section is empty.

      Variables

      This section is empty.

      Functions

      func WrapSession

      func WrapSession(s *session.Session, opts ...Option) *session.Session

        WrapSession wraps a session.Session, causing requests and responses to be traced.

        Types

        type Option

        type Option func(*config)

          Option represents an option that can be passed to Dial.

          func WithAnalytics

          func WithAnalytics(on bool) Option

            WithAnalytics enables Trace Analytics for all started spans.

            func WithAnalyticsRate

            func WithAnalyticsRate(rate float64) Option

              WithAnalyticsRate sets the sampling rate for Trace Analytics events correlated to started spans.

              func WithServiceName

              func WithServiceName(name string) Option

                WithServiceName sets the given service name for the dialled connection. When the service name is not explicitly set it will be inferred based on the request to AWS.

                Source Files