Documentation ¶
Index ¶
- func ConnectRequestf(ctx context.Context, info ConnectRequestInfo)
- func Errorf(ctx context.Context, format string, args ...any)
- func Infof(ctx context.Context, format string, args ...any)
- func New()
- func Requestf(ctx context.Context, rw *HTTPRequestLogResponseWriter, r *http.Request)
- func SetCloudTraceContext(ctx context.Context, xcTraceCtx string) context.Context
- func WithStackTracef(err error, format string, args ...any) error
- type ConnectRequestInfo
- type HTTPRequestLogResponseWriter
- type RequestTimeKey
- type SpanIDKey
- type TraceIDKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectRequestf ¶
func ConnectRequestf(ctx context.Context, info ConnectRequestInfo)
func Requestf ¶
func Requestf(ctx context.Context, rw *HTTPRequestLogResponseWriter, r *http.Request)
func SetCloudTraceContext ¶
Types ¶
type ConnectRequestInfo ¶
type ConnectRequestInfo struct { Status int Req connect.AnyRequest Resp connect.AnyResponse }
type HTTPRequestLogResponseWriter ¶
type HTTPRequestLogResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
func NewLogHTTPResponseWriter ¶
func NewLogHTTPResponseWriter(rw http.ResponseWriter) *HTTPRequestLogResponseWriter
func (*HTTPRequestLogResponseWriter) Write ¶
func (lrw *HTTPRequestLogResponseWriter) Write(buf []byte) (int, error)
func (*HTTPRequestLogResponseWriter) WriteHeader ¶
func (lrw *HTTPRequestLogResponseWriter) WriteHeader(code int)
type RequestTimeKey ¶
type RequestTimeKey struct{}
type TraceIDKey ¶
type TraceIDKey struct{}
Click to show internal directories.
Click to hide internal directories.