Skip to content

Commit

Permalink
fix: replace trace-id by trace_id
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Aug 17, 2024
1 parent 7bd189e commit 8691155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ Attributes will be injected in log payload.
Other global parameters:

```go
slogfiber.TraceIDKey = "trace-id"
slogfiber.SpanIDKey = "span-id"
slogfiber.TraceIDKey = "trace_id"
slogfiber.SpanIDKey = "span_id"
slogfiber.RequestBodyMaxSize = 64 * 1024 // 64KB
slogfiber.ResponseBodyMaxSize = 64 * 1024 // 64KB
slogfiber.HiddenRequestHeaders = map[string]struct{}{ ... }
Expand Down
4 changes: 2 additions & 2 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ type customAttributesCtxKeyType struct{}
var customAttributesCtxKey = customAttributesCtxKeyType{}

var (
TraceIDKey = "trace-id"
SpanIDKey = "span-id"
TraceIDKey = "trace_id"
SpanIDKey = "span_id"
RequestIDKey = "id"

RequestBodyMaxSize = 64 * 1024 // 64KB
Expand Down

0 comments on commit 8691155

Please sign in to comment.