Documentation ¶
Overview ¶
Package insmetrics provides helpers for opencesus metrics.
Index ¶
- func ChangeTags(ctx context.Context, mutator ...tag.Mutator) context.Context
- func InsertTag(ctx context.Context, key tag.Key, value string) context.Context
- func MustTagKey(key string) tag.Key
- func RegisterPrometheus(ctx context.Context, namespace string, registry *prometheus.Registry, ...) (*censusprom.Exporter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeTags ¶
ChangeTags wrapper around opencensus tag.New for tags modifiacations.
Panics on errors.
func MustTagKey ¶
MustTagKey creates new tag.Key, panics on error
func RegisterPrometheus ¶
func RegisterPrometheus( ctx context.Context, namespace string, registry *prometheus.Registry, reportperiod time.Duration, ) (*censusprom.Exporter, error)
RegisterPrometheus creates prometheus exporter and registers it in opencensus view lib.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.