package dcensus
Import Path
golang.org/x/pkgsite/internal/dcensus (on go.dev)
Dependency Relation
imports 20 packages, and imported by 5 packages
Package-Level Type Names (total 4, in which 2 are exported)
Router is an http multiplexer that instruments per-handler debugging
information and census instrumentation.
Handler http.Handler
mux *http.ServeMux
tagger RouteTagger
Handle registers handler with the given route. It has the same routing
semantics as http.ServeMux.
HandleFunc is a wrapper around Handle for http.HandlerFuncs.
( T) ServeHTTP(http.ResponseWriter, *http.Request)
T : net/http.Handler
func NewRouter(tagger RouteTagger) *Router
Package-Level Functions (total 9, in which 5 are exported)
Init configures tracing and aggregation according to the given Views. If
running on GCP, Init also configures exporting to StackDriver.
NewRouter creates a new Router, using tagger to tag incoming requests in
monitoring. If tagger is nil, a default route tagger is used.
NewServer creates a new http.Handler for serving debug information.
NewViewExporter creates a StackDriver exporter for stats.
RecordWithTag is a convenience function for recording a single measurement with a single tag.
Package-Level Variables (total 6, all are exported)
KeyStatus is a tag key named "status".
Customizations of ochttp views. Views are updated as follows:
+ ClientHost and ServerRoute are added to resp. client and server metrics.
Since these are bounded cardinality in our metrics, they are useful to
add additional context.
+ Method tags are removed. We don't have any routes that accept more than
one HTTP method.
Customizations of ochttp views. Views are updated as follows:
+ ClientHost and ServerRoute are added to resp. client and server metrics.
Since these are bounded cardinality in our metrics, they are useful to
add additional context.
+ Method tags are removed. We don't have any routes that accept more than
one HTTP method.
Customizations of ochttp views. Views are updated as follows:
+ ClientHost and ServerRoute are added to resp. client and server metrics.
Since these are bounded cardinality in our metrics, they are useful to
add additional context.
+ Method tags are removed. We don't have any routes that accept more than
one HTTP method.
Customizations of ochttp views. Views are updated as follows:
+ ClientHost and ServerRoute are added to resp. client and server metrics.
Since these are bounded cardinality in our metrics, they are useful to
add additional context.
+ Method tags are removed. We don't have any routes that accept more than
one HTTP method.
Customizations of ochttp views. Views are updated as follows:
+ ClientHost and ServerRoute are added to resp. client and server metrics.
Since these are bounded cardinality in our metrics, they are useful to
add additional context.
+ Method tags are removed. We don't have any routes that accept more than
one HTTP method.
Package-Level Constants (only one, which is unexported)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |