Skip to content

Commit

Permalink
add label
Browse files Browse the repository at this point in the history
Signed-off-by: Song Gao <[email protected]>
  • Loading branch information
Yisaer committed Feb 27, 2025
1 parent 5567c79 commit d8786a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/sinks/kafka/ext/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ func (m *kafkaSink) buildKafkaWriter() error {

func (m *kafkaSink) Open(ctx api.StreamContext) error {
ctx.GetLogger().Debug("Opening kafka sink")
m.writer.RuleID = ctx.GetRuleId()
m.writer.OpID = ctx.GetOpId()
return nil
}

Expand Down

0 comments on commit d8786a2

Please sign in to comment.