Documentation ¶
Overview ¶
Package tf5serverlogging contains logging functionality specific to tf5server and tfprotov5 types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownstreamRequest ¶
DownstreamRequest sets a request duration start time context key and generates a TRACE "Sending request downstream" log.
func DownstreamResponse ¶
func DownstreamResponse(ctx context.Context, diagnostics diag.Diagnostics)
DownstreamResponse generates the following logging:
- TRACE "Received downstream response" log with request duration and diagnostic severity counts
- Per-diagnostic logs
func ServerCapabilities ¶ added in v0.19.0
func ServerCapabilities(ctx context.Context, capabilities *tfprotov5.ServerCapabilities)
ServerCapabilities generates a TRACE "Announced server capabilities" log.
Types ¶
type ContextKeyDownstreamRequestStartTime ¶
type ContextKeyDownstreamRequestStartTime struct{}
ContextKeyDownstreamRequestStartTime is a context.Context key to store the time.Time when the server began a downstream request.
Click to show internal directories.
Click to hide internal directories.