Skip to content

Suggestions for #8915#8924

Merged
OriginLeon merged 4 commits intomarcelo/ROUTER-1609from
caroline/router-1609
Feb 26, 2026
Merged

Suggestions for #8915#8924
OriginLeon merged 4 commits intomarcelo/ROUTER-1609from
caroline/router-1609

Conversation

@carodewig
Copy link
Copy Markdown
Contributor

I was having a hard time verbalizing my suggestions and found it easier to put them in code.

The key idea is tho separate the validate_otel_envs_not_present into a few parts:

  1. Define which environment variables should be rejected programmatically
  2. Check for which variables are present in a separate function
  3. Create an error based on variables present in a separate function

This is primarily to allow better testing - using unsafe {} code blocks is widely discouraged and separating the pieces allows them to be tested without the use of unsafe blocks.

This change also uses std::env::var rather than std::env::var_os as we need to prohibit non-unicode OTEL vars as well.

@carodewig carodewig requested a review from a team as a code owner February 26, 2026 17:42
@apollo-librarian
Copy link
Copy Markdown
Contributor

apollo-librarian bot commented Feb 26, 2026

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 2 changed, 0 removed
* graphos/routing/(latest)/security/demand-control.mdx
* graphos/routing/(latest)/security/router-authentication.mdx

Build ID: fe558fd7c5cfc7ecb795e879
Build Logs: View logs

URL: https://www.apollographql.com/docs/deploy-preview/fe558fd7c5cfc7ecb795e879


✅ AI Style Review — No Changes Detected

No MDX files were changed in this pull request.

Review Log: View detailed log

This review is AI-generated. Please use common sense when accepting these suggestions, as they may not always be accurate or appropriate for your specific context.

@carodewig carodewig mentioned this pull request Feb 26, 2026
10 tasks
@OriginLeon OriginLeon merged commit b594c12 into marcelo/ROUTER-1609 Feb 26, 2026
13 of 14 checks passed
@OriginLeon OriginLeon deleted the caroline/router-1609 branch February 26, 2026 21:13
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.

2 participants