OpenTelemetry instrumentation for Express.js web applications enabling automatic distributed tracing and observability
80
A diagnostic tool for Express.js applications that analyzes and classifies different types of layers in the middleware stack using OpenTelemetry instrumentation.
@generates
/**
* 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.
Install with Tessl CLI
npx tessl i tessl/npm-opentelemetry--instrumentation-expressdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10