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

How do you capture network traffic? #52

Closed
joshidp opened this issue Jul 6, 2023 · 1 comment
Closed

How do you capture network traffic? #52

joshidp opened this issue Jul 6, 2023 · 1 comment

Comments

@joshidp
Copy link

joshidp commented Jul 6, 2023

How do you capture network traffic?

Is there any change required in actual service code? If not, then how externally traffic can be monitored?

Thanks!

@LeonOstrez
Copy link
Member

hey @joshidp I'm so sorry, I don't know how i missed your issue.

If you are asking about integration testing then answer is that we are using module patching. It is a way to modify existing modules with your own functionality. For example, we do it to "express" module so that we can set our own middlewares and functions that are called once express server is being started. We are currently patching http, express, jwt and mongodb. That is why this is stack that we support and to support more we have to implement it. Once we have all patches in place we start server and can intercept requests and store all needed data.

If you are asking about unit testing in that case answer is we don't capture network traffic. Unit tests are generated on static code without any network traffic (for now, we will see if we will change that in future).

I hope that answers your question. Let me know if something else is not clear.

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

No branches or pull requests

2 participants