tf6serverlogging

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

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

func DownstreamRequest(ctx context.Context) context.Context

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

Types

type ContextKeyDownstreamRequestStartTime

type ContextKeyDownstreamRequestStartTime struct{}

ContextKeyDownstreamRequestStartTime is a context.Context key to store the time.Time when the server began a downstream request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL