docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A diagnostic tool for Express.js applications that analyzes and classifies different types of layers in the middleware stack using OpenTelemetry instrumentation.
/**
* Analyzes an Express application and returns information about its layers.
*
* @param {Express.Application} app - The Express application to analyze
* @returns {Promise<Array<{name: string, type: string}>>} Array of layer objects with name and type
*/
async function analyzeLayers(app) {
// IMPLEMENTATION HERE
}
module.exports = {
analyzeLayers
};The tool should:
The test should create an Express app with:
Then call analyzeLayers() to get classification results.
Provides automatic instrumentation for Express.js applications with layer type detection and classification capabilities.
Provides OpenTelemetry API for tracing operations.
Provides tracing SDK functionality for span collection.
The Express.js web framework to be analyzed.