Skip to content

Commit

Permalink
Trivial grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maguro committed Dec 19, 2024
1 parent c0dbb95 commit e976f00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion k8s/podinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions otel/baggage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e976f00

Please sign in to comment.