feat: refactor Python SDK and enhance API error reporting
- Relocated Python SDK to `sdk/python/datastack` with new auto-configuration support via `config.datastack.py` - Updated SDK installation and usage documentation - Enhanced `/api/events` response format to include specific error codes for revoked and rotated credentials - Updated SDK dashboard snippet generator to support new configuration pattern
This commit is contained in:
1 parent
367dd819f8
commit
0c2e49cd47
18 files changed
+2288
-249
No files matched your search
+3
-1
@@ -252,7 +252,7 @@ const io = new Server(server, {
|
||||
cors: { origin: '*', methods: ['GET', 'POST'] },
|
||||
});
|
||||
|
||||
// Health check endpoint with activeSockets count
|
||||
// Health check endpoint with activeSockets count and runtime capabilities
|
||||
app.get('/health', (_req, res) => {
|
||||
res.json({
|
||||
status: 'online',
|
||||
@@ -260,6 +260,8 @@ app.get('/health', (_req, res) => {
|
||||
port: PORT,
|
||||
activeSockets: io.engine ? io.engine.clientsCount : 0,
|
||||
bufferSize: bufferQueue.length,
|
||||
maxEventsPerSec: runtimeConfig.maxEventsPerSec,
|
||||
maxPayloadSizeBytes: runtimeConfig.maxPayloadSizeBytes,
|
||||
uptime: process.uptime(),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user