Skip to content

failed to output.GetRecord(dec) #72

@rfyiamcool

Description

@rfyiamcool

summary

https://github.com/fluent/fluent-bit-go/blob/master/examples/out_multiinstance/out.go#L45

I have a question about what scenario will fail to execute output.GetRecord(dec) ? 😁 Or, how do I print a decode failure log.

I want to know why it failed. 😁

//export FLBPluginFlushCtx
func FLBPluginFlushCtx(ctx, data unsafe.Pointer, length C.int, tag *C.char) int {
	dec := output.NewDecoder(data, int(length))
	count := 0
	for {
		ret, ts, record := output.GetRecord(dec)
		if ret != 0 {
			break
		}
		...
}

thank u.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions