Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TraceEndpointV2 is the endpoint used for SAPM v2 traces. The SAPM protocol started with v2. There is no v1. TraceEndpointV2 = "/v2/trace" // ContentTypeHeaderName is the http header name used for Content-Type ContentTypeHeaderName = "Content-Type" // ContentTypeHeaderValue is the value used for protobuf Content-Type http headers ContentTypeHeaderValue = "application/x-protobuf" // AcceptEncodingHeaderName is the http header name used for Accept-Encoding AcceptEncodingHeaderName = "Accept-Encoding" // ContentEncodingHeaderName is the http header name used for Content-Encoding ContentEncodingHeaderName = "Content-Encoding" // GZipEncodingHeaderValue is the value used for gzipped encoding http headers GZipEncodingHeaderValue = "gzip" // ZStdEncodingHeaderValue is the value used for zstd-compressed encoding http headers ZStdEncodingHeaderValue = "zstd" )
Variables ¶
View Source
var ( // ErrBadContentType indicates an incompatible content type was received ErrBadContentType = errors.New("bad content type") )
Functions ¶
func ParseSapmRequest ¶ added in v0.5.2
func ParseSapmRequest(req *http.Request, into proto.Unmarshaler) error
ParseSapmRequest parses an http request request into an SAPM compatible proto definition.
func ParseTraceV2Request ¶
func ParseTraceV2Request(req *http.Request) (*splunksapm.PostSpansRequest, error)
ParseTraceV2Request processes an http request request into SAPM
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.