docs: add settings documentation to otel.py and generate documentation. Fixes #751#817
docs: add settings documentation to otel.py and generate documentation. Fixes #751#817martynia wants to merge 4 commits intoDIRACGrid:mainfrom
Conversation
beafa8b to
0fb3e6c
Compare
|
This PR recovers the previous documentation for OTEL env variables, but there's a bit more left to be added, that was there previously:
I think those should be recovered in order to consider the original task closed (I understand this makes the task more complex, this was clearly not foreseen). |
|
|
There's also |
|
https://github.com/DIRACGrid/diracx/blob/main/diracx-routers/src/diracx/routers/factory.py#L355 And the OS db as well diracx/diracx-db/src/diracx/db/os/utils.py Line 115 in b9c7ea3 |
|
@chaen |
|
@martynia from what I understand after discussing with @chaen, the documentation of these variables can't be auto-generated because they are not relying on the |
|
Do expect me to create a setting class and let the template to render it or to put the text directly into the template ? |
Put the text directly into the template |
0fb3e6c to
eee17a6
Compare
|
Still a draft? @martynia do you need to still add something to this one? |
eee17a6 to
ef9a6e5
Compare
|
No, it should be ready. |
| ### `DIRACX_LEGACY_EXCHANGE_HASHED_API_KEY` | ||
| The hashed API key for the legacy exchange endpoint. | ||
|
|
||
| ### `DIRACX_SERVICE_DOTENV` | ||
| The variable points to .env files where configuration may be placed. There could be more than one file, with suffixes | ||
| _X, where X is a number. The files will be loaded in order. | ||
|
|
||
| ### `DIRACX_SERVICE_JOBS_ENABLED` | ||
| Determines whether the jobs service is enabled. | ||
|
|
There was a problem hiding this comment.
Why here and not between ##Databases and SandboxStoreSettings?
There was a problem hiding this comment.
Currently Database is after SandboxStore, if I put them between, they would belong to SandboxStore. Should those setting have their own section or sections? The dotinv one looks like a major one, shouldn't it go on top ? The same is true with DIRACX_CONFIG_BACKEND_URL. Which section should this go to ?
There was a problem hiding this comment.
The Core section is good. Can you also remove the duplicated DIRACX_SERVICE_DOTENV please?
There was a problem hiding this comment.
Ok sorry, one last comment, then it's ok 😅
I think we should move DIRACX_SERVICE_JOBS_ENABLED in the Core section and DIRACX_LEGACY_EXCHANGE_HASHED_API_KEY should likely go before SandboxStoreSettings as you did originally (sorry 😅 )
ef9a6e5 to
8487fdb
Compare
… and generate documentation
f87290b to
6ad468d
Compare
This PR adds missing documentation to
otel.py, and add its path to.pre-commit-config.yaml. Documentation for databases is not yet covered since thedbsystem doesn't follow the service settings scheme. Added osx-64 platform topixias well.