Documentation ¶
Index ¶
Constants ¶
View Source
const SyslogPrefix = "@cee: "
View Source
const SyslogTag = "pid"
View Source
const Type = "trace"
Variables ¶
This section is empty.
Functions ¶
func FromCli ¶
func FromCli(c *cli.Context) (plugin.Middleware, error)
FromCli creates a Trace plugin object from command line
func FromOther ¶
func FromOther(t Trace) (plugin.Middleware, error)
FromOther creates and validates Trace plugin instance from serialized format
func GetSpec ¶
func GetSpec() *plugin.MiddlewareSpec
GetSpec returns all information neccessary for Vulcand to plugin this extension
Types ¶
type Trace ¶
type Trace struct { // ReqHeaders - request headers to capture ReqHeaders []string // RespHeaders - response headers to capture RespHeaders []string // Address in format syslog://host:port or syslog:///path/socket.sock Addr string }
Trace plugin emits structured logs to syslog facility
func (*Trace) NewHandler ¶
NewHandler creates a new http.Handler middleware
Click to show internal directories.
Click to hide internal directories.