-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add documentation clarification #3382
Changes from 2 commits
3cbeeda
5035329
fe1027e
b65b224
7697a53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,6 +167,11 @@ Use Playwright to simulate and validate user workflows including: | |
|
||
Visit the https://playwright.dev/docs[Playwright documentation] for information. | ||
|
||
[NOTE] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a bit confusing for me, I've used headful mode for debugging on synthetics cli, shouldn't this specifically refer to Elastic hosted synthetics service/heartbeat monitors instead? Running headful locally used to be supported. IMO, it should still be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @emilioalvap that's correct, it is still possible via the CLI, which is why I didn't add the note there I also specifically mentioned There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the wording on the CLI specific page is quite detailed, I'd replicate that here:
IMO, this page is more generic than the CLI one to simply state that headful mode is not supported, it might be confusing for users as well. |
||
==== | ||
Synthetics will always run browser monitors in headless mode (it is not possible to configure them to run in headful mode, even if setting Playwright options). | ||
==== | ||
|
||
However, not all Playwright functionality should be used with Elastic Synthetics. | ||
In some cases, there are alternatives to Playwright functionality built into the | ||
Elastic Synthetics library. These alternatives are designed to work better for | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -6,11 +6,8 @@ | |||||
|
||||||
// hosts | ||||||
| [[monitor-tcp-hosts]] *`hosts`* | ||||||
(list of <<synthetics-lightweight-data-string,string>>s) | ||||||
a| *Required*. A list of hosts to ping. The entries in the list can be: | ||||||
|
||||||
* *A plain host name, such as `localhost`, or an IP address.* | ||||||
If you specify this option, you must also specify a value for <<monitor-tcp-ports,`ports`>>. If the monitor is {heartbeat-ref}/configuration-ssl.html[configured to use SSL], Synthetics establishes an SSL/TLS-based connection. Otherwise, it establishes a plain TCP connection. | ||||||
(<<synthetics-lightweight-data-string,string>>) | ||||||
a| *Required*. The host to ping. The entries in the list can be: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, thanks |
||||||
|
||||||
* *A hostname and port, such as `localhost:12345`.* | ||||||
Synthetics connects to the port on the specified host. If the monitor is {heartbeat-ref}/configuration-ssl.html[configured to use SSL], Synthetics establishes an SSL/TLS-based connection. Otherwise, it establishes a TCP connection. | ||||||
|
@@ -24,32 +21,17 @@ a| *Required*. A list of hosts to ping. The entries in the list can be: | |||||
|
||||||
[source,yaml] | ||||||
---- | ||||||
hosts: ["localhost"] | ||||||
---- | ||||||
|
||||||
[source,yaml] | ||||||
---- | ||||||
hosts: ["localhost:8000"] | ||||||
hosts: "localhost" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed you removed "A plain host name, such as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks - good catch, removing |
||||||
---- | ||||||
|
||||||
[source,yaml] | ||||||
---- | ||||||
hosts: ["tcp://localhost:8000"] | ||||||
hosts: "localhost:8000" | ||||||
---- | ||||||
|
||||||
//////////////// | ||||||
ports | ||||||
//////////////// | ||||||
| [[monitor-tcp-ports]] *`ports`* | ||||||
(list of <<synthetics-lightweight-data-string,string>>s) | ||||||
a| A list of ports to ping if the host specified in <<monitor-tcp-hosts,`hosts`>> does not contain a port number. It is generally preferable to use a single value here, since each port will be monitored using a separate `id`, with the given `id` value, used as a prefix in the Synthetics data, and the configured `name` shared across events sent via this check. | ||||||
|
||||||
*Example*: | ||||||
|
||||||
[source,yaml] | ||||||
---- | ||||||
hosts: ["localhost"] | ||||||
ports: [80, 9200, 5044] | ||||||
hosts: "tcp://localhost:8000" | ||||||
---- | ||||||
|
||||||
//////////////// | ||||||
|
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.
I would have said "even forcing
headless:false
via Playwright options, we do not support running browser monitors in headful mode".Maybe, can share an hint of passing a user agent like here if really needed? https://github.com/elastic/synthetics/blob/d33d899bafa686da0b547afd2145db51b411ed1b/examples/todos/synthetics.config.ts#L12
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.
@lucabelluccini I thought the confusion was originally because someone was specifically trying to run in headful mode - were they doing this because they wanted a non headless UA string then?
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.
I do not have the whole detail about it, we can check together in Slack