Skip to content

Commit

Permalink
trace: add GetStartOptions config (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Dec 18, 2023
1 parent 64ea3be commit 5486824
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type Trace struct {
IsPublicEndpoint bool
FormatSpanName func(r *http.Request) string
StartOptions trace.StartOptions
GetStartOptions func(r *http.Request) trace.StartOptions
}

// ServeHandler implements middleware interface
Expand All @@ -42,6 +43,7 @@ func (m Trace) ServeHandler(h http.Handler) http.Handler {
Propagation: m.Propagation,
FormatSpanName: m.FormatSpanName,
StartOptions: m.StartOptions,
GetStartOptions: m.GetStartOptions,
IsPublicEndpoint: m.IsPublicEndpoint,
}
}

0 comments on commit 5486824

Please sign in to comment.