Skip to content

Commit

Permalink
Define 'Start' and 'Shutdown' functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsafyan committed Nov 1, 2024
1 parent b4a9b83 commit 80976e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connector/blobuploadconnector/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import (

type passThroughLogsConnector struct {
nextConsumer consumer.Logs
component.StartFunc
component.ShutdownFunc
}

func (c *passThroughLogsConnector) Start(_ context.Context, _ component.Host) error { return nil }
func (c *passThroughLogsConnector) Shutdown(_ context.Context) error { return nil }

func (c *passThroughLogsConnector) ConsumeLogs(ctx context.Context, ld plog.Logs) error {
return c.nextConsumer.ConsumeLogs(ctx, ld)
}
Expand Down
3 changes: 3 additions & 0 deletions connector/blobuploadconnector/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type passThroughTracesConnector struct {
component.ShutdownFunc
}

func (c *passThroughTracesConnector) Start(_ context.Context, _ component.Host) error { return nil }
func (c *passThroughTracesConnector) Shutdown(_ context.Context) error { return nil }

func (c *passThroughTracesConnector) ConsumeTraces(ctx context.Context, td ptrace.Traces) error {
return c.nextConsumer.ConsumeTraces(ctx, td)
}
Expand Down

0 comments on commit 80976e9

Please sign in to comment.