aggregator

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator interface {
	manager.Component

	// Send sends an event to the tracer backend.
	Send(ctx context.Context, object utilobject.Rich, event *aggregatorevent.Event) error

	// EnsureObjectSpan creates a pseudospan for the object, and triggers any possible relevant linkers.
	EnsureObjectSpan(
		ctx context.Context,
		object utilobject.Rich,
		eventTime time.Time,
	) (tracer.SpanContext, error)

	// GetOrCreatePseudoSpan creates a span following the pseudospan standard with the required tags.
	GetOrCreatePseudoSpan(
		ctx context.Context,
		object utilobject.Rich,
		pseudoType zconstants.PseudoTypeValue,
		eventTime time.Time,
		parent tracer.SpanContext,
		followsFrom tracer.SpanContext,
		extraTags map[string]string,
		dedupId string,
	) (span tracer.SpanContext, isNew bool, err error)
}

Jump to

Keyboard shortcuts

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