Skip to content

Commit

Permalink
export trace id constant in api package
Browse files Browse the repository at this point in the history
  • Loading branch information
wperron committed Dec 13, 2021
1 parent e5d0c10 commit 4d49452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const (
urlParamTraceID = "traceID"
URLParamTraceID = "traceID"
// search
urlParamTags = "tags"
urlParamMinDuration = "minDuration"
Expand Down Expand Up @@ -57,7 +57,7 @@ const (

func ParseTraceID(r *http.Request) ([]byte, error) {
vars := mux.Vars(r)
traceID, ok := vars[urlParamTraceID]
traceID, ok := vars[URLParamTraceID]
if !ok {
return nil, fmt.Errorf("please provide a traceID")
}
Expand Down

0 comments on commit 4d49452

Please sign in to comment.