observability

package
v0.1.0-preview.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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 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

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