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

Support triggering frontend applications via headless browser #3106

Open
mathnogueira opened this issue Aug 28, 2023 · 1 comment
Open

Support triggering frontend applications via headless browser #3106

mathnogueira opened this issue Aug 28, 2023 · 1 comment

Comments

@mathnogueira
Copy link
Member

Is your feature request related to a problem? Please describe.
@b2ronn opened #3104 because when triggering his frontend application via Tracetest, it would not generate any traces at all. This is happening because of two reasons:

  1. Our HTTP trigger implementation doesn't interpret the result of the HTTP response, thus all requests are just fetched as a blob of text and the application JavaScript code is not executed.
  2. Some tracing solutions (in this case, Elastic APM RUM) require a real browser to execute the request, otherwise they don't generate any telemetry data.

Describe the solution you'd like
We could ship tracetest with some small headless browser and have a special trigger for it, acting just like our HTTP Trigger sending all the required headers for propagating the trace context. It would also require a script field where you could place the javascript code for triggering the test (not all tests will be executable by entering the page, some might require clicking on buttons, filling forms, etc).

Additional context
Add any other context or screenshots about the feature request here.

@jorgeepc
Copy link
Contributor

We have a research ticket for this: #2544

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

No branches or pull requests

2 participants