Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhengl committed Dec 9, 2024
1 parent f5b4fee commit f64f0ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/tenant/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const (
skipLogging contextKey = iota
)

// WithSkipMissingLogging skips logging when the tenant ID is missing. We use
// this, for example in the health check handler, when we know that the tenant
// ID is not needed.
func WithSkipMissingLogging(ctx context.Context) context.Context {
return context.WithValue(ctx, skipLogging, skipLogging)
}
Expand Down

0 comments on commit f64f0ee

Please sign in to comment.