Documentation ¶
Overview ¶
Package stackdriver has moved.
Deprecated: Use contrib.go.opencensus.io/exporter/stackdriver instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is a stats.Exporter and trace.Exporter implementation that uploads data to Stackdriver.
func NewExporter ¶
NewExporter creates a new Exporter that implements both stats.Exporter and trace.Exporter.
func (*Exporter) ExportSpan ¶
ExportSpan exports a SpanData to Stackdriver Trace.
func (*Exporter) ExportView ¶
ExportView exports to the Stackdriver Monitoring if view data has one or more rows.
type Options ¶
type Options struct { // ProjectID is the identifier of the Stackdriver // project the user is uploading the stats data to. // If not set, this will default to your "Application Default Credentials". // For details see: https://developers.google.com/accounts/docs/application-default-credentials ProjectID string // OnError is the hook to be called when there is // an error uploading the stats or tracing data. // If no custom hook is set, errors are logged. // Optional. OnError func(err error) // MonitoringClientOptions are additional options to be passed // to the underlying Stackdriver Monitoring API client. // Optional. MonitoringClientOptions []option.ClientOption // TraceClientOptions are additional options to be passed // to the underlying Stackdriver Trace API client. // Optional. TraceClientOptions []option.ClientOption // BundleDelayThreshold determines the max amount of time // the exporter can wait before uploading view data to // the backend. // Optional. BundleDelayThreshold time.Duration // BundleCountThreshold determines how many view data events // can be buffered before batch uploading them to the backend. // Optional. BundleCountThreshold int // Resource is an optional field that represents the Stackdriver // MonitoredResource, a resource that can be used for monitoring. // If no custom ResourceDescriptor is set, a default MonitoredResource // with type global and no resource labels will be used. // Optional. Resource *monitoredrespb.MonitoredResource // MetricPrefix overrides the OpenCensus prefix of a stackdriver metric. // Optional. MetricPrefix string }
Options contains options for configuring the exporter.
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
stats
Command stackdriver is an example program that collects data for video size.
|
Command stackdriver is an example program that collects data for video size. |
Package propagation implement X-Cloud-Trace-Context header propagation used by Google Cloud products.
|
Package propagation implement X-Cloud-Trace-Context header propagation used by Google Cloud products. |
Click to show internal directories.
Click to hide internal directories.