From e976f00f77d14a47d0031f878bc69b1402d03a44 Mon Sep 17 00:00:00 2001 From: "Alan D. Cabrera" Date: Thu, 19 Dec 2024 10:54:32 -0800 Subject: [PATCH] Trivial grammar fixes --- handler.go | 2 +- k8s/podinfo.go | 2 +- otel/baggage.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handler.go b/handler.go index 9abb8c7..97de541 100644 --- a/handler.go +++ b/handler.go @@ -105,7 +105,7 @@ func (h *GcpHandler) Enabled(_ context.Context, level slog.Level) bool { // Handle will handle a slog.Record, as described in the interface's // documentation. It will translate the slog.Record into a logging.Entry -// that's filled with a *spb.Value as a Entry Payload. +// that's filled with a *spb.Value as an Entry Payload. func (h *GcpHandler) Handle(ctx context.Context, record slog.Record) error { //nolint:forcetypeassert payload2 := proto.Clone(h.payload).(*spb.Struct) diff --git a/k8s/podinfo.go b/k8s/podinfo.go index eb4b054..74ef2ba 100644 --- a/k8s/podinfo.go +++ b/k8s/podinfo.go @@ -39,7 +39,7 @@ const ( PodPrefix = "k8s-pod/" ) -// WithPodinfoLabels returns a Option that directs that the slog.Handler to +// WithPodinfoLabels returns an Option that directs that the slog.Handler to // include labels from the Kubernetes Downward API podinfo labels file. The // labels file is expected to be found in the directory specified by root and // MUST be named "labels", per the Kubernetes Downward API for Pods. diff --git a/otel/baggage.go b/otel/baggage.go index 8bebf42..21d02e6 100644 --- a/otel/baggage.go +++ b/otel/baggage.go @@ -32,13 +32,13 @@ const ( OtelBaggageKey = "otel-baggage/" ) -// WithOtelBaggage returns an gslog option that directs that the slog.Handler +// WithOtelBaggage returns a gslog option that directs that the slog.Handler // to include OpenTelemetry baggage. The baggage.Baggage is obtained from the // context, if available, and added as attributes. // // The baggage keys are prefixed with "otel-baggage/" to mitigate collision // with other log attributes. Baggage that have no properties are mapped to -// an slog.Attr for a string value. Baggage that have properties mapped to a +// a slog.Attr for a string value. Baggage that have properties mapped to a // slog.Group with two keys, "value" which is the value of the baggage, and // "properties" which is the properties of the baggage as a slog.Group. // Baggage properties that have no value are mapped to slog.Any with a nil