RUM-16668: Add wildcard host pattern matching to first-party tracing#3600
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3600 +/- ##
===========================================
+ Coverage 72.85% 72.89% +0.03%
===========================================
Files 975 975
Lines 35277 35267 -10
Branches 5972 5976 +4
===========================================
+ Hits 25700 25705 +5
+ Misses 7915 7896 -19
- Partials 1662 1666 +4
🚀 New features to boost your workflow:
|
e727462 to
932a370
Compare
9722a98 to
9ea7754
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9ea77542b5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9ea7754 to
9a9040e
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ebac038642
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ebac038 to
79c8401
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 79c84012c4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
79c8401 to
9c95e91
Compare
9c95e91 to
c12b1f1
Compare
c12b1f1 to
b30efb2
Compare
What does this PR do?
setFirstPartyHostsandsetFirstPartyHostsWithHeaderTypeinsideConfiguration, which extends toApmNetworkInstrumentationConfigurationandTracingInterceptor. Entries can now be a plain host (e.g.example.com) or a wildcard pattern such as*.example.com.HostPatternSanitizerand plain entries toHostsSanitizer.DefaultFirstPartyHostHeaderTypeResolveragainst a precompiled regex per pattern. A*matches one or more host characters and may span subdomain labels, so*.example.commatchesapi.example.comanda.b.example.combut not the apexexample.com.*is no longer allowed as match-all. There were some tests on this, but it was actually unreachable in production asHostsSanitizeralready dropped entries with*before the resolver.addKnownHostsfunction, as it was only used in tests.Motivation
Review checklist (to be filled by reviewers)