Enable tokio-console (#8897)

Release Notes:

- Added tokio-console in production
This commit is contained in:
Conrad Irwin
2024-03-05 10:56:14 -07:00
committed by GitHub
parent 9a2ed4bf1a
commit cfffa29f9a
5 changed files with 197 additions and 7 deletions
+1
View File
@@ -17,6 +17,7 @@ name = "collab"
name = "seed"
[dependencies]
console-subscriber = "0.2"
anyhow.workspace = true
async-tungstenite = "0.16"
aws-config = { version = "1.1.5" }
+2 -2
View File
@@ -78,8 +78,8 @@ spec:
periodSeconds: 1
resources:
requests:
cpu: "46"
memory: "90Gi"
cpu: "20"
memory: "20Gi"
env:
- name: HTTP_PORT
value: "8080"
+1
View File
@@ -25,6 +25,7 @@ const REVISION: Option<&'static str> = option_env!("GITHUB_SHA");
#[tokio::main]
async fn main() -> Result<()> {
console_subscriber::init();
if let Err(error) = env::load_dotenv() {
eprintln!(
"error loading .env.toml (this is expected in production): {}",