type go.opencensus.io/metric/metricdata.Metric
24 uses
go.opencensus.io/metric/metricdata (current package)
metric.go#L34: type Metric struct {
go.opencensus.io/metric/metricexport
export.go#L25: ExportMetrics(ctx context.Context, data []*metricdata.Metric) error
reader.go#L181: data := []*metricdata.Metric{}
go.opencensus.io/metric/metricproducer
producer.go#L27: Read() []*metricdata.Metric
go.opencensus.io/stats/view
view_to_metric.go#L130: func viewToMetric(v *viewInternal, r *resource.Resource, now time.Time, startTime time.Time) *metricdata.Metric {
view_to_metric.go#L146: m := &metricdata.Metric{
worker.go#L369: func (w *worker) toMetric(v *viewInternal, now time.Time) *metricdata.Metric {
worker.go#L387: func (w *worker) Read() []*metricdata.Metric {
worker.go#L391: metrics := make([]*metricdata.Metric, 0, len(w.views))
contrib.go.opencensus.io/exporter/prometheus
prometheus.go#L142: func (c *collector) toDesc(metric *metricdata.Metric) *prometheus.Desc {
prometheus.go#L161: func (me *metricExporter) ExportMetrics(ctx context.Context, metrics []*metricdata.Metric) error {
prometheus.go#L186: func (me *descExporter) ExportMetrics(ctx context.Context, metrics []*metricdata.Metric) error {
prometheus.go#L201: func metricName(namespace string, m *metricdata.Metric) string {
prometheus.go#L211: metric *metricdata.Metric,
contrib.go.opencensus.io/exporter/stackdriver
metrics.go#L52: func (se *statsExporter) ExportMetrics(ctx context.Context, metrics []*metricdata.Metric) error {
metrics.go#L65: func (se *statsExporter) handleMetricsUpload(metrics []*metricdata.Metric) {
metrics.go#L72: func (se *statsExporter) uploadMetrics(metrics []*metricdata.Metric) error {
metrics.go#L138: func (se *statsExporter) metricToMpbTs(ctx context.Context, metric *metricdata.Metric) ([]*monitoringpb.TimeSeries, error) {
metrics.go#L225: func (se *statsExporter) createMetricDescriptorFromMetric(ctx context.Context, metric *metricdata.Metric) error {
metrics.go#L260: func (se *statsExporter) metricToMpbMetricDescriptor(metric *metricdata.Metric) (*googlemetricpb.MetricDescriptor, error) {
metrics.go#L306: func metricDescriptorTypeToMetricKind(m *metricdata.Metric) (googlemetricpb.MetricDescriptor_MetricKind, googlemetricpb.MetricDescriptor_ValueType) {
stackdriver.go#L410: func (e *Exporter) ExportMetrics(ctx context.Context, metrics []*metricdata.Metric) error {
stats.go#L124: e.metricsBundler = bundler.NewBundler((*metricdata.Metric)(nil), func(bundle interface{}) {
stats.go#L125: metrics := bundle.([]*metricdata.Metric)
 |
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. |