middleware

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorReporter

func ErrorReporter() func(goa.Endpoint) goa.Endpoint

ErrorReporter is a Goa endpoint middleware that flags a span as failed when an error is returned by the service method.

Usage:

endpoints := gen.NewEndpoints(svc)
endpoints.Use(ErrorReporter())

Types

This section is empty.

Jump to

Keyboard shortcuts

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