tracer

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tracer is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTracer

func SetTracer(customTracer Tracer)

SetTracer initializes tracer with custom tracer

func Trace

func Trace(ctx context.Context, format string, args ...interface{})

Trace contains implementation of trace function

func TraceFuncCall

func TraceFuncCall(ctx context.Context, funcName string) func()

TraceFuncCall performs tracing

Types

type DummyTracer

type DummyTracer struct{}

DummyTracer is used for testing purpose

func (*DummyTracer) Trace

func (dl *DummyTracer) Trace(_ context.Context, format string, args ...interface{})

Trace contains dummy implementation of trace function

type Tracer

type Tracer interface {
	Trace(ctx context.Context, format string, args ...interface{})
}

Tracer tracing interface for gobrick

Jump to

Keyboard shortcuts

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