package stats

import "google.golang.org/grpc/internal/stats"

Package stats provides internal stats related functionality.

Index

Functions

func SetLabels

func SetLabels(ctx context.Context, labels *Labels) context.Context

SetLabels sets the Labels in the context.

Types

type Labels

type Labels struct {
	// TelemetryLabels are the telemetry labels to record.
	TelemetryLabels map[string]string
}

Labels are the labels for metrics.

func GetLabels

func GetLabels(ctx context.Context) *Labels

GetLabels returns the Labels stored in the context, or nil if there is one.

Source Files

labels.go

Version
v1.66.0-dev
Published
Jun 6, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.