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
📈 pass through runTelemetry option from landing page configs to embeds #7504
📈 pass through runTelemetry option from landing page configs to embeds #7504
Conversation
✅ Deploy Preview for apollo-server-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1a57505:
|
a153580
to
1711044
Compare
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.
Will you please add the new config option to the API docs?
.changeset/honest-donuts-sparkle.md
Outdated
'@apollo/server': minor | ||
--- | ||
|
||
Add runTelemetry boolean option to embedded landing pages |
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.
Will you please provide a brief explanation of what this config option does (and maybe the telemetry we collect)?
A little code snippet to show how to configure the plugin with this option would be great too.
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.
Yes, I wasn't sure if we wanted to make this super public, but I don't see why we wouldn't. I'll update with the docs and this! 🙏🏻
Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
….com:mayakoneval/apollo-server into maya/NBLA-2242/runTelemetry-in-landing-pages
``` | ||
const server = new ApolloServer({ | ||
typeDefs, | ||
resolvers, | ||
plugins: [ | ||
process.env.NODE_ENV === 'production' | ||
? ApolloServerPluginLandingPageProductionDefault({ | ||
graphRef: 'my-graph-id@my-graph-variant', | ||
embed: { | ||
runTelemetry: false | ||
}, | ||
}) | ||
: ApolloServerPluginLandingPageLocalDefault({ | ||
embed: { | ||
runTelemetry: false | ||
}, | ||
}), | ||
], | ||
}); |
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.
Not sure how to suggest or correctly escape a ``` but this needs one to close.
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.
👍🏻 done
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.
LGTM, I just need to get the docs build failures sorted (it's not you)
In the Apollo Server Landing Page Local config, you can now opt out of the telemetry that Apollo Studio runs in the embedded Sandbox & Explorer landing pages. This telemetry includes Google Analytics for event tracking and Sentry for error tracking. Fixes #7494 --------- Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @apollo/server@4.7.0 ### Minor Changes - [#7504](#7504) [`22a5be934`](22a5be9) Thanks [@mayakoneval](https://github.com/mayakoneval)! - In the Apollo Server Landing Page Local config, you can now opt out of the telemetry that Apollo Studio runs in the embedded Sandbox & Explorer landing pages. This telemetry includes Google Analytics for event tracking and Sentry for error tracking. Example of the new config option: const server = new ApolloServer({ typeDefs, resolvers, plugins: [ process.env.NODE_ENV === 'production' ? ApolloServerPluginLandingPageProductionDefault({ graphRef: 'my-graph-id@my-graph-variant', embed: { runTelemetry: false }, }) : ApolloServerPluginLandingPageLocalDefault({ embed: { runTelemetry: false }, }), ], }); ## @apollo/server-integration-testsuite@4.7.0 ### Patch Changes - [#7509](#7509) [`5c20aa02e`](5c20aa0) Thanks [@renovate](https://github.com/apps/renovate)! - Update `graphql-http` dependency - [#7475](#7475) [`b9ac2d6b2`](b9ac2d6) Thanks [@renovate](https://github.com/apps/renovate)! - Update graphql-http dependency - Updated dependencies \[[`22a5be934`](22a5be9)]: - @apollo/server@4.7.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Hi! We had a user request the ability to turn off telemetry, lets allow that.
We support this in the embed in this merged PR and in studio in this merged PR
Fixes #7494