observability

package
v0.1.0-preview.2 Latest Latest
Warning

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

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

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

func ObservedHandler(
	_ context.Context,
	invocation sdk.Invocation,
) (sdk.Result, error)

ObservedHandler contributes one generated method observation boundary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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