How andywannasing/trace-anywhere works
Main Components
a. Core Components:
• Trace Agent (Java Agent)
• Core Framework
• Plugin System
• Server Component
b. Plugins:
• HTTP Plugin
• MySQL Plugin
• Redis Plugin
• Kafka Plugin
• TCP Plugin
• Execution Plugin
Top Level (Instrumentation Layer)
• How it connects to the application being monitored
Middle Layer (Core Framework)
• Include:
• TraceManager
• TraceContextHolder
• Span Management
• Log Management
Plugin Layer
• Plugins in a horizontal layout
• Related plugins:
• Database (MySQL, Redis)
• Messaging (Kafka)
• Network (HTTP, TCP)
• Execution monitoring
Bottom Layer (Server)
• Data collection and storage flow
Data Flow
• Instrumentation flow (Agent → Application)
• Trace data flow (Application → Plugins → Core → Server)
• Context propagation between components
Key Elements to Emphasize:
Instrumentation Mechanism
• How the agent injects code using ASM/ByteBuddy
• Transformation points
Plugin Architecture
• Plugin interface and extension points
• How plugins interact with core components
Trace Context
• Context propagation
• Span relationship management
Data Collection
• How different types of traces are collected:
• HTTP requests
• Database queries
• Message processing
• Method execution
Labels for
• Major components
• Integration points
• Data flow directions
• Key interfaces
Maintain proper abstraction
• Component interaction
• Skip internal implementation details
• Main data flows
• Extension points
Remember to indicate the asynchronous nature of trace collection and how the system maintains performance while gathering detailed execution data.