Skip to content

Implement Subscribe API call for BYOC #613

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

Merged
merged 11 commits into from
Aug 22, 2024
Merged

Implement Subscribe API call for BYOC #613

merged 11 commits into from
Aug 22, 2024

Conversation

edwardrf
Copy link
Contributor

@edwardrf edwardrf commented Aug 8, 2024

  • Implement subscribe API call for byoc aws client, using ecsEventsHandler interface to share data from log tailing to the Subscribe api call
  • Make collection stream compliant with the server stream interface, keep all channel logic inside collection stream
  • Update term package and tail command to output the same log entry in a single log call, so messages will not be interleaved

also fix collection stream error handling
@edwardrf edwardrf requested review from lionello and nullfunc August 8, 2024 18:28
@edwardrf edwardrf marked this pull request as draft August 8, 2024 18:28
@edwardrf edwardrf marked this pull request as ready for review August 12, 2024 22:01
@edwardrf edwardrf requested review from lionello and nullfunc August 16, 2024 00:36
Copy link
Contributor

@nullfunc nullfunc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. minor typo fix.

@edwardrf edwardrf force-pushed the edw-byoc-subscribe branch from 1ad7836 to fff08ef Compare August 16, 2024 18:11
@@ -158,7 +184,8 @@ func (t *Term) Printlnc(c Color, v ...any) (int, error) {
}

func (t *Term) Printfc(c Color, format string, v ...any) (int, error) {
return outputf(t.stdout, c, format, v...)
line := ensureNewline(fmt.Sprintf(format, v...))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the less usefull outputf func above

@edwardrf edwardrf requested a review from lionello August 20, 2024 16:57
Copy link
Member

@lionello lionello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just suggestion to simplify append

edwardrf and others added 2 commits August 22, 2024 12:03
Co-authored-by: Lio李歐 <[email protected]>
This reverts commit ba38ee9.
@edwardrf edwardrf merged commit b8d5e38 into main Aug 22, 2024
1 check passed
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.

4 participants