logging

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package logging provides gRPC interceptors for access logging

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogInterceptor

func AccessLogInterceptor() grpc.UnaryServerInterceptor

func AccessLogStreamInterceptor

func AccessLogStreamInterceptor() grpc.StreamServerInterceptor

Types

type AccessLogEntity

type AccessLogEntity struct {
	GRPC      *AccessLogGRPCEntity `json:"grpc,omitempty"      yaml:"grpc"`
	StartTime int64                `json:"startTime,omitempty" yaml:"startTime"`
	EndTime   int64                `json:"endTime,omitempty"   yaml:"endTime"`
	Latency   int64                `json:"latency,omitempty"   yaml:"latency"`
	TraceID   string               `json:"traceID,omitempty"   yaml:"traceID"`
	Error     error                `json:"error,omitempty"     yaml:"error"`
}

type AccessLogGRPCEntity

type AccessLogGRPCEntity struct {
	Kind    string `json:"kind,omitempty"    yaml:"kind"`
	Service string `json:"service,omitempty" yaml:"service"`
	Method  string `json:"method,omitempty"  yaml:"method"`
}

Jump to

Keyboard shortcuts

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