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

Inject telemetry script if telemetry enabled hosted on dagster.io #21814

Merged
merged 2 commits into from
May 14, 2024

Conversation

salazarm
Copy link
Contributor

@salazarm salazarm commented May 13, 2024

Summary & Motivation

The script doesn't exist yet so this just 404s atm but we will be adding it soon.

How I Tested These Changes

Built the app, loaded it, confirmed everything works and that we load the script:

image

@@ -30,5 +30,10 @@ export const extractInitializationData = (): {
}
}
}
if (value.telemetryEnabled) {
const script = document.createElement('script');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we set defer and async?

@@ -30,5 +30,10 @@ export const extractInitializationData = (): {
}
}
}
if (value.telemetryEnabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testing this with telemetry on and off is important

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this path has been tested for the existing telemetry stuff but I can double check

Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This looks good to me --

It looks like our OSS CSP allows script-src 'nonce-NONCE-PLACEHOLDER' 'unsafe-inline' https: http: 'strict-dynamic'; , so this will load? I didn't realize it allowed https: and http:

@salazarm salazarm merged commit 97c80ef into master May 14, 2024
1 check was pending
@salazarm salazarm deleted the salazarm/inject-oss-telemetry branch May 14, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants