Documentation ¶
Overview ¶
Package gcpmetrics supports gathering and publishing metrics on GCP using OpenTelemetry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMeterProvider ¶
func NewMeterProvider(ctx context.Context, lg *slog.Logger, projectID string) (*sdkmetric.MeterProvider, error)
NewMeterProvider creates an sdkmetric.MeterProvider that exports metrics to GCP's Monitoring service. Call Shutdown on the MeterProvider after use.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.