dhobs

package
v1.141.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dhobs observes a DataHub call the platform makes outside the semantic provider's and the DataHub toolkit's own decorators (#1896): the apply_knowledge writer and the portal catalog's edits. Each call is one datahub_requests_total observation, one datahub_request_duration_seconds sample and a datahub.<operation> client span under the caller's span, recorded through the platform's one recorder (outbound.Metrics, nil and a no-op until the observability layer installs it). The operation is a closed name the caller passes; the URNs and values stay off the label and the span.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(ctx context.Context, op string, fn func(context.Context) error) error

Call is Do for a call that returns only an error.

func Do

func Do[T any](ctx context.Context, op string, fn func(context.Context) (T, error)) (T, error)

Do runs one DataHub call under its span, records it, and returns what the call returned, its error unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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