[SLO] do not display apm chart without transaction type or svc name (#209552)

## Summary

Resolves #209172 

### Old
<img width="1728" alt="Screenshot 2025-02-05 at 11 48 59 AM"
src="https://github.com/user-attachments/assets/c08e9544-5a84-462b-80fe-cf5e982bfccf"
/>

### New
<img width="1728" alt="Screenshot 2025-02-05 at 11 47 57 AM"
src="https://github.com/user-attachments/assets/d4f26f21-70a5-4c5c-9f43-05a9da6734c5"
/>

## Testing
Create an APM availability SLO with any service. Use default settings
(`*`) for transaction type and service name. Once SLI drops below
objective, you should see an alert. View alert details. On main branch,
several alerts appear indicating that Kibana is unable to load APM
visualizations, even if for just a second. Now, the errored out charts
(alerts) should not appear.

## Release Notes

Fixes an issue where APM charts were rendered without required
transaction type or service name, causing excessive alerts to appear
This commit is contained in:
Bailey Cash 2025-02-05 11:58:34 -05:00 committed by GitHub
parent f5c9d8b031
commit b47c8266e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,6 +79,10 @@ export function APMEmbeddableRoot({
...groupingsInput.input,
};
if (!input.serviceName || !input.transactionType) {
return null;
}
return (
<ReactEmbeddableRenderer
type={embeddableId}