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 Spice-native structured application logging.
Generated observations use a selected injectable logging.Logger, preserve compiler-owned scope metadata, and cover every active Spice observation seam. No global logger is installed.
// @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 Spice-native structured 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.
Click to show internal directories.
Click to hide internal directories.