| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
package graph |
| 5 |
|
| 6 |
import ( |
| 7 |
"go.opentelemetry.io/collector/pipeline" |
| 8 |
"go.opentelemetry.io/collector/service/internal/attribute" |
| 9 |
) |
| 10 |
|
| 11 |
var _ consumerNode = (*fanOutNode)(nil) |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
type fanOutNode struct { |
| 16 |
attribute.Attributes |
| 17 |
pipelineID pipeline.ID |
| 18 |
baseConsumer |
| 19 |
} |
| 20 |
|
| 21 |
func newFanOutNode(pipelineID pipeline.ID) *fanOutNode { |
| 22 |
return &fanOutNode{ |
| 23 |
Attributes: attribute.Fanout(pipelineID), |
| 24 |
pipelineID: pipelineID, |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
func (n *fanOutNode) getConsumer() baseConsumer { |
| 29 |
return n.baseConsumer |
| 30 |
} |