tododriver

package
v0.0.0-...-468a20b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreatedTodoItemCount  = stats.Int64("created_todo_item_count", "Number of todo items created", stats.UnitDimensionless)
	CompleteTodoItemCount = stats.Int64("complete_todo_item_count", "Number of todo items marked complete", stats.UnitDimensionless)
)

Business metrics nolint: gochecknoglobals,lll

View Source
var (
	CreatedTodoItemCountView = &view.View{
		Name:        "todo_item_created_count",
		Description: "Count of todo items created",
		Measure:     CreatedTodoItemCount,
		Aggregation: view.Count(),
	}

	CompleteTodoItemCountView = &view.View{
		Name:        "todo_item_complete_count",
		Description: "Count of todo items complete",
		Measure:     CompleteTodoItemCount,
		Aggregation: view.Count(),
	}
)

nolint: gochecknoglobals

Functions

func InstrumentationMiddleware

func InstrumentationMiddleware() todo2.Middleware

InstrumentationMiddleware is a service level instrumentation middleware.

func LoggingMiddleware

func LoggingMiddleware(logger todo2.Logger) todo2.Middleware

LoggingMiddleware is a service level logging middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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