obs

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package obs provides tenant observability fields and redaction helpers for structured logs.

Index

Constants

View Source
const (
	// TenantIDField is the standard observability field for tenant ID.
	TenantIDField = "tenant_id"

	// TenantSideField is the standard observability field for tenant side.
	TenantSideField = "tenant_side"
)

Variables

This section is empty.

Functions

func Fields

func Fields(ctx context.Context) map[string]string

Fields returns tenant observability fields for ctx.

func Redact

func Redact(fields map[string]string) map[string]string

Redact removes sensitive values from a string map.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL