Help us shape the future of Go! Take the 2026 Go Developer Survey

telemetry

package
v0.4.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProviderProject    = "baseharbor-telemetry"
	ProviderService    = "otel-collector"
	ProviderNetwork    = "baseharbor-telemetry"
	ProviderImage      = "docker.io/otel/opentelemetry-collector-contrib:0.161.0"
	ExternalHeadersEnv = "BASEHARBOR_OTLP_HEADERS"
	ProbeTraceIDHex    = "42617365486172626f72303430370001"
)

Variables

This section is empty.

Functions

func DestroySharedProvider

func DestroySharedProvider(ctx context.Context, runtime Runtime) error

func DestroySharedProviderAt added in v0.4.15

func DestroySharedProviderAt(ctx context.Context, runtime Runtime, dataDir, namespace string) error

func ExportProviderInteractionTrace added in v0.4.15

func ExportProviderInteractionTrace(ctx context.Context, m application.Manifest, source observability.SignalSource) (string, error)

func ExportProviderInteractionTraceAt added in v0.4.15

func ExportProviderInteractionTraceAt(ctx context.Context, m application.Manifest, source observability.SignalSource, dataDir, namespace string) (string, error)

func ProviderEndpoint added in v0.4.10

func ProviderEndpoint(files ProviderFiles) (string, error)

func RetireRuntimeAt added in v0.4.25

func RetireRuntimeAt(ctx context.Context, provider bhruntime.RuntimeServiceRetirementProvider, dataDir, namespace, traceNetwork string) (bhruntime.RuntimeRetirement, error)

Shared Core project siblings and attached consumer networks are not removal targets. Data/configuration/TLS and registration owners remain for re-add.

func VerificationTracePayload added in v0.4.10

func VerificationTracePayload(m application.Manifest) []byte

func VerifyApplicationAt added in v0.4.15

func VerifyApplicationAt(ctx context.Context, m application.Manifest, files application.RuntimeFiles, dataDir, namespace string) error

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(runtime Runtime, app application.Manifest, files application.RuntimeFiles, issuer serviceaccess.Issuer) *Driver

func NewDriverAt added in v0.4.15

func NewDriverAt(runtime Runtime, app application.Manifest, files application.RuntimeFiles, issuer serviceaccess.Issuer, dataDir, namespace string) *Driver

func NewDriverWithRealization added in v0.4.19

func NewDriverWithRealization(realization OTLPRealization, app application.Manifest, files application.RuntimeFiles) *Driver

func (*Driver) Bind

func (d *Driver) Bind(ctx context.Context, resource capability.Resource, _ capability.Binding) error

func (*Driver) Descriptor

func (d *Driver) Descriptor() capability.Provider

func (*Driver) Preflight

func (d *Driver) Preflight(_ context.Context, resource capability.Resource, binding capability.Binding) error

func (*Driver) Provision

func (d *Driver) Provision(ctx context.Context, resource capability.Resource, _ capability.Binding) error

func (*Driver) RotatePKI added in v0.4.21

func (d *Driver) RotatePKI(ctx context.Context) error

func (*Driver) SetTraceBackend added in v0.4.10

func (d *Driver) SetTraceBackend(endpoint, network string)

func (*Driver) Verify

func (d *Driver) Verify(ctx context.Context, resource capability.Resource, _ capability.Binding) error

type ExternalOTLPBindingChange added in v0.4.25

type ExternalOTLPBindingChange struct {
	Changed        bool
	Endpoint       string
	InputsVerified bool
	Revision       string `json:"-"`
}

Revision is private consent input, never a public material fingerprint.

func InspectRegisteredOTLPBindingChange added in v0.4.25

func InspectRegisteredOTLPBindingChange(app application.Manifest, files application.RuntimeFiles, dataDir string) (ExternalOTLPBindingChange, error)

type OTLPInstance added in v0.4.19

type OTLPInstance struct {
	HostEndpoint      string
	WorkloadEndpoint  string
	TrustBundle       []byte
	ClientCertificate []byte
	ClientKey         []byte
	HTTPClient        *http.Client
	Network           string
	ObservationID     string
}

type OTLPRealization added in v0.4.19

type OTLPRealization interface {
	Apply(context.Context) (OTLPInstance, error)
	Existing(context.Context) (OTLPInstance, error)
	Destroy(context.Context) error
}

type ProviderFiles

type ProviderFiles struct {
	Dir     string
	Compose string
	Env     string
	Config  string
	Project string
	Network string
}

func EnsureProviderFiles

func EnsureProviderFiles(ctx context.Context, issuer serviceaccess.Issuer) (ProviderFiles, error)

func EnsureProviderFilesWithTraceBackend added in v0.4.10

func EnsureProviderFilesWithTraceBackend(ctx context.Context, issuer serviceaccess.Issuer, traceEndpoint, traceNetwork string) (ProviderFiles, error)

func EnsureProviderFilesWithTraceBackendForEnvironment added in v0.4.15

func EnsureProviderFilesWithTraceBackendForEnvironment(ctx context.Context, issuer serviceaccess.Issuer, traceEndpoint, traceNetwork, environment string, intent ...availability.Requirement) (ProviderFiles, error)

func EnsureProviderFilesWithTraceBackendForEnvironmentAt added in v0.4.15

func EnsureProviderFilesWithTraceBackendForEnvironmentAt(ctx context.Context, issuer serviceaccess.Issuer, traceEndpoint, traceNetwork, environment, dataDir, namespace string, intent ...availability.Requirement) (ProviderFiles, error)

func ExistingProviderFiles

func ExistingProviderFiles() (ProviderFiles, error)

func ExistingProviderFilesAt added in v0.4.15

func ExistingProviderFilesAt(dataDir, namespace string) (ProviderFiles, error)

func ExistingRuntimeInventoryAt added in v0.4.25

func ExistingRuntimeInventoryAt(dataDir, namespace, traceNetwork string) (ProviderFiles, []bhruntime.ProjectResource, error)

traceNetwork is the retained selected consumer binding, not a network discovered/adopted from arbitrary native labels or a modified Compose file.

type Runtime

type Runtime interface {
	ConfigProject(context.Context, string, string, string) error
	UpProject(context.Context, string, string, string) error
	DestroyProject(context.Context, string, string, string) error
}

Jump to

Keyboard shortcuts

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