Skip to content
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

feat(env-collector): a few improvements for using in stats #1048

Merged
merged 14 commits into from
Sep 10, 2024
Merged
1 change: 1 addition & 0 deletions libs/env-collector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0.86"
config = "0.14.0"
itertools = "0.13.0"
json_dotpath = "1.1.0"
regex = "1.10.4"
serde = { version = "1.0.203", features = ["derive"] }
Expand Down
7 changes: 4 additions & 3 deletions libs/env-collector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ This is a simple tool to collect possible environment variables from `Settings`
"<SERVICE_NAME_PREFIX>",
"README.md",
"<PATH TO .TOML/.JSON EXAMPLE CONFIG>",
&["<ENV_PREFIX_TO_IGNORE>"],
&[PrefixFilter::blacklist("<ENV_PREFIX_TO_IGNORE>")],
Some("some_postfix"),
);
}
```
Expand All @@ -33,8 +34,8 @@ This is a simple tool to collect possible environment variables from `Settings`
```markdown
## Envs

[anchor]: <> (anchors.envs.start)
[anchor]: <> (anchors.envs.end)
[anchor]: <> (anchors.envs.start.some_postfix)
[anchor]: <> (anchors.envs.end.some_postfix)
```

4. (Optional) In your `justfile` add new command to run `check-envs.rs`:
Expand Down
Loading
Loading