backstage-create-app doesn't add vital init() piece automatically

You have to adjust your `index.html` template file manually.

Signed-off-by: Stephan Schielke <401815+stephanschielke@users.noreply.github.com>
This commit is contained in:
Stephan Schielke
2022-07-13 18:09:01 +01:00
committed by GitHub
parent ee5a89e0e1
commit 10150b140c
@@ -24,6 +24,8 @@ app:
# env: 'staging'
```
If during [`yarn backstage-create-app`](https://github.com/backstage/backstage/tree/master/packages/create-app) time your [`app-config.yaml`](https://github.com/backstage/backstage/blob/master/app-config.yaml#L5) file did not have this configuration, you have to adjust your [`packages/app/public/index.html`](https://github.com/backstage/backstage/blob/master/packages/app/public/index.html#L64) to include the Datadog RUM `init()` section manually.
The `clientToken` and `applicationId` are generated from the Datadog RUM page
following
[these instructions](https://docs.datadoghq.com/real_user_monitoring/browser/).