metrics

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context) (sdkmetrics.Metrics, error)

Extract takes the call-scoped sdkmetrics.Metrics from the context. If the ctxMetrics wasn't used, an error is returned.

func ToContext

func ToContext(ctx context.Context, metrics sdkmetrics.Metrics) context.Context

ToContext adds the sdkmetrics.Metrics to the context for extraction later. Returning the new context that has been created.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL