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

feat(server): adding event emitter #2269

Merged
merged 8 commits into from Mar 29, 2023
Merged

feat(server): adding event emitter #2269

merged 8 commits into from Mar 29, 2023

Conversation

danielbdias
Copy link
Contributor

@danielbdias danielbdias commented Mar 28, 2023

This PR aims to create an Event Emitter structure inside ./server/executor that allows us to emit and persist events on Tracetest Server.

Changes

  • Added event emitter structure

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@danielbdias danielbdias changed the title wip feat(server): adding event emitter Mar 29, 2023
@danielbdias danielbdias marked this pull request as ready for review March 29, 2023 15:06
Copy link
Collaborator

@xoscar xoscar left a comment

Choose a reason for hiding this comment

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

Clean job @danielbdias I like how you moved the main facade function to a diff file

PoolingMaxWaitTimeForTraceDuration() time.Duration
}

func newRunnerFacades(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved to ./server/app/facade.go to keep all concerns about the façade there.

}
}

func (em *internalEventEmitter) Emit(ctx context.Context, event model.TestRunEvent) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

On the next PRs we can evolve this method to also manage/start trace spans with each phase that we designed.

@danielbdias danielbdias merged commit f56d33e into main Mar 29, 2023
27 checks passed
@danielbdias danielbdias deleted the add/event-emitter branch March 29, 2023 23:27
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.

None yet

3 participants