Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sapm handler and refactor for remaining sapm parser #7

Merged
merged 3 commits into from
Dec 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 0 additions & 167 deletions sapmhandler/handlers.go

This file was deleted.

148 changes: 0 additions & 148 deletions sapmhandler/handlers_test.go

This file was deleted.

17 changes: 17 additions & 0 deletions sapmprotocol/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package sapmprotocol

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"
)
Loading