- Introduced a new constant `ContextKeyRequestStartTime` to store the request start time in the context, enhancing request tracking. - Updated the `Distribute` middleware to set the request start time in the context using the new constant. - Modified the `GenRelayInfo` function to retrieve the request start time from the context, ensuring accurate timing information is used in relay operations.
6 lines
79 B
Go
6 lines
79 B
Go
package constant
|
|
|
|
const (
|
|
ContextKeyRequestStartTime = "request_start_time"
|
|
)
|