Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement WriteEvent on file output so that it can be used by 'inputs' components #274

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

netixx
Copy link
Contributor

@netixx netixx commented Nov 2, 2023

WriteEvent is used by the "inputs" components to output their data.

Without this implementation,
things like

inputs:
  nats-replay:
    type: nats
    address: nats-server:4222
    subject: replay
    debug: true
    buffer-size: 1
    outputs:
      - file-dump

outputs:
  file-dump:
    type: file
    format: event
    debug: true
    split-events: true
    filename: /output.json
    concurrency-limit: 1

wont actually output anything to the file.

outputs/file/file_output.go Show resolved Hide resolved
@karimra karimra merged commit f6273a8 into openconfig:main Nov 6, 2023
2 checks passed
@netixx
Copy link
Contributor Author

netixx commented Nov 7, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants