loggingtracer

package
v0.0.0-...-71cd2e8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package loggingtracer provides a trace.Tracer that wraps trace.DefaultTracer and logs span starts/ends and durations. It is intended for local debugging only, as usage in production might cause noisy and/or verbose logs.

To use this logger, call Initialize(). To customize the logger function, override Logf.

Index

Constants

This section is empty.

Variables

View Source
var Logf func(format string, v ...interface{}) = sklog.Infof

Logf is the logging function used by this package.

Functions

func Initialize

func Initialize()

Initialize wraps trace.DefaultTracer with a trace.Tracer implementation that logs span starts/ends using the Logf function defined in this package.

This is intended for local debugging only. Usage in production might cuase noisy/verbose logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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