Documentation ¶
Overview ¶
Package sdserver provides the diagnostic hooks for a server using Stackdriver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( server.Set, NewExporter, wire.Bind((*trace.Exporter)(nil), (*stackdriver.Exporter)(nil)), NewRequestLogger, wire.Bind((*requestlog.Logger)(nil), (*requestlog.StackdriverLogger)(nil)), )
Set is a Wire provider set that provides the diagnostic hooks for *server.Server given a GCP token source and a GCP project ID.
Functions ¶
func NewExporter ¶
func NewExporter(id gcp.ProjectID, ts gcp.TokenSource) (*stackdriver.Exporter, error)
NewExporter returns a new OpenCensus Stackdriver exporter.
func NewRequestLogger ¶
func NewRequestLogger() *requestlog.StackdriverLogger
NewRequestLogger returns a request logger that sends entries to stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.