Skip to content

[Synthetics] Monitor config serialization is incorrect for inline monitors #169963

Description

Kibana version: main

Describe the bug:

When creating Synthetics monitors, If template strings are used in the Synthetics script steps for the Multi Step journeys, Execution of that monitor results in yaml parsing error on the Heartbeat side due to incorrect string serialization.

Steps to reproduce:

  1. Create a Synthetics Multi Step monitor
  2. Paste in any script containing steps that involves JS template literals. Example
step('Go to example,com', async () => { 
 const url = "https://example.com"
  await page.goto(`${url}`);
});
  1. Execution will result in error that calls out the YML parsing issue job could not be initialized: could not parse browser config: missing field accessing 'heartbeat.monitors.0.streams.0.source.inline.script' (source:'/heartbeat/heartbeat.yml')

Expected behavior: Steps should be executed successfully without any errors.

Screenshots (if relevant):
Screenshot 2023-10-26 at 9 57 04 AM

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

Metadata

Assignees

Labels

SyntheticsTeam:obs-ux-managementObservability Management User Experience TeambugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions