Documentation
¶
Index ¶
- Constants
- type ClientWrapper
- func (c *ClientWrapper) Do(req *http.Request) (resp *http.Response, err error)
- func (c *ClientWrapper) Get(rawUrl string) (resp *http.Response, err error)
- func (c *ClientWrapper) Head(rawUrl string) (resp *http.Response, err error)
- func (c *ClientWrapper) Post(rawUrl string, contentType string, body io.Reader) (resp *http.Response, err error)
- func (c *ClientWrapper) PostForm(rawUrl string, data url.Values) (resp *http.Response, err error)
- type TracingTransport
- type ValidationFunction
Constants ¶
View Source
const AMAZON_REQUEST_ID = "x-amzn-requestid"
View Source
const API_GATEWAY_RESOURCE_TYPE = "api_gateway"
View Source
const APPSYNC_API_SUBDOMAIN = ".appsync-api."
View Source
const EPSAGON_DOMAIN = "epsagon.com"
View Source
const EPSAGON_TRACEID_HEADER_KEY = "epsagon-trace-id"
View Source
const MAX_METADATA_SIZE = 10 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWrapper ¶
type ClientWrapper struct { http.Client // MetadataOnly flag overriding the configuration MetadataOnly bool // contains filtered or unexported fields }
ClientWrapper is Epsagon's wrapper for http.Client
func Wrap ¶
func Wrap(c http.Client, args ...context.Context) ClientWrapper
Wrap wraps an http.Client to Epsagon's ClientWrapper
func (*ClientWrapper) Get ¶
func (c *ClientWrapper) Get(rawUrl string) (resp *http.Response, err error)
Get wraps http.Client.Get
func (*ClientWrapper) Head ¶
func (c *ClientWrapper) Head(rawUrl string) (resp *http.Response, err error)
Head wraps http.Client.Head
type TracingTransport ¶ added in v1.7.0
type TracingTransport struct { // MetadataOnly flag overriding the configuration MetadataOnly bool // contains filtered or unexported fields }
TracingTransport is the RoundTripper implementation that traces HTTP calls
func NewTracingTransport ¶ added in v1.7.0
func NewTracingTransport(args ...context.Context) *TracingTransport
func NewWrappedTracingTransport ¶ added in v1.8.0
func NewWrappedTracingTransport(rt http.RoundTripper, args ...context.Context) *TracingTransport
type ValidationFunction ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.