Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithSpan ¶
ContextWithSpan returns a copy of parent in which span is stored.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller handles OpenTelemetry telemetry generation for events.
func NewController ¶
func NewController(logger *slog.Logger, tracerProvider trace.TracerProvider) (*Controller, error)
NewController returns a new initialized Controller.
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown(ctx context.Context) error
Shutdown shuts down the OpenTelemetry TracerProvider.
Once shut down, calls to Trace will result in no-op spans (i.e. dropped).
func (*Controller) Trace ¶
func (c *Controller) Trace(ss ptrace.ScopeSpans)
Trace creates a trace span for event.
This method is safe to call concurrently.
type EBPFSourceIDGenerator ¶
type EBPFSourceIDGenerator struct{}
func NewEBPFSourceIDGenerator ¶
func NewEBPFSourceIDGenerator() *EBPFSourceIDGenerator
Click to show internal directories.
Click to hide internal directories.