-
Notifications
You must be signed in to change notification settings - Fork 134
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
Create two bundles: core and rum #24
Conversation
9423db6
to
49ae6b2
Compare
@@ -2,6 +2,11 @@ import { expect } from 'chai' | |||
import * as request from 'request' | |||
const baseRequest = request.defaults({ baseUrl: 'http://localhost:3000' }) | |||
|
|||
afterEach(async () => { | |||
const logs = await browser.getLogs('browser') | |||
logs.forEach(console.log) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it for debug purpose?
Could we expect to not have browser logs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it's to debug failing tests, otherwise you have zero information from the bundle errors / logs. (For instance I had a SyntaxError
on page.html
that only appeared when logging that).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think of expecting that there is no browser logs?
It would be harder to miss a browser log
Add two entry points for two bundles: core (only log) and rum (core + rum). I did a refacto of the configuration (no need for a class) to be able to add configuration specific to the RUM. I also did not want to expose the log endpoints to the user so I made a bundle special for e2e tests.
I also choose to not
monitor
all thestart*
methods because it can be tricky to start monitoring when the start monitor itself can fail and that for now we want to know immediately if errors appear here, they are really critical and, arguably, even the customer could want to know about it if the agent does not work at all.-> Anyway we should discuss about the monitor strategy, we won't be able to do anything that we want 😢.