Documentation
¶
Overview ¶
Package observability defines canonical descriptors for generated observability features.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logging ¶
func Logging() sdk.Definition
Logging enables structured application and module lifecycle logging.
Generated observations use slog-compatible structured records and preserve application, module, component, operation, and phase fields. No global logger is installed; the logger remains an explicit dependency.
// @import { Logging } from "github.com/spice-framework/spice/annotation/observability"
// @Logging
func ObservabilityLoggingHandler ¶
func ObservabilityLoggingHandler( _ context.Context, invocation sdk.Invocation, ) (sdk.Result, error)
ObservabilityLoggingHandler contributes structured lifecycle logging.
func Observed ¶
func Observed() sdk.Definition
Observed marks an interface-bound managed service method for generated, instance-owned duration, failure, and panic observation.
// @import { Observed } from "github.com/spice-framework/spice/annotation/observability"
// @Observed(name="orders.create")
func ObservedHandler ¶
ObservedHandler contributes one generated method observation boundary.
Types ¶
This section is empty.