feat(statsreporter): add ecs platform detection (#8529)

This commit is contained in:
Nageshbansal 2025-07-15 18:55:30 +05:30 committed by GitHub
parent c36c492877
commit 168a7baf6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,6 +108,8 @@ func detectPlatform() string {
return "coolify"
case os.Getenv("RAILWAY_SERVICE_ID") != "":
return "railway"
case os.Getenv("ECS_CONTAINER_METADATA_URI_V4") != "":
return "ecs"
}
// Try to detect cloud provider through metadata endpoints
@ -165,6 +167,5 @@ func detectPlatform() string {
}
}
return "unknown"
}