Commit 3b0d024
TT-17154 Clarify config struct comments for docs generation (#69)
* TT-17154 Clarify config struct comments for docs generation
Improve user-facing documentation generated from struct comments based
on PR review feedback:
- Exporter: fix grammar; describe it as the OTLP transport that must
match the collector's protocol.
- ResourceName: replace circular wording with concrete meaning (service
name reported as the OpenTelemetry resource that identifies the
Gateway in backends).
- OpenTelemetry.Enabled and TLS.Enable: adopt Tyk's standard
"Set this to true to enable..." phrasing for consistency with the
rest of gateway config.
- TLS.CAFile: clarify that only filesystem paths are accepted;
certificate store IDs are not supported here.
- TLS.MaxVersion/MinVersion: clarify that the "1.3"/"1.2" defaults
are enforced by the library, not inherited from Go's crypto/tls.
* TT-17154 Simplify TLS MinVersion/MaxVersion default wording
Drop the Tyk-vs-Go-crypto/tls parenthetical from the version defaults
comments; the simpler "Defaults to" form matches the rest of the file.
* TT-17154 Revert TLS MinVersion/MaxVersion comments to original form
The original wording is already aligned with the tyk-docs version
(tyk-docs PR #2018), so there's no docs-consistency reason to change it.
* Apply suggestions from code review
Co-authored-by: andyo-tyk <99968932+andyo-tyk@users.noreply.github.com>
---------
Co-authored-by: andyo-tyk <99968932+andyo-tyk@users.noreply.github.com>1 parent 91eb9e9 commit 3b0d024
1 file changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
| 128 | + | |
| 129 | + | |
125 | 130 | | |
126 | | - | |
| 131 | + | |
127 | 132 | | |
128 | 133 | | |
129 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
| |||
0 commit comments