Package ai.narrativetrace.agent


package ai.narrativetrace.agent
Java agent for bytecode-level trace instrumentation via ASM.

NarrativeTraceAgent is the agent entry point ( premain). NarrativeClassFileTransformer selects classes for instrumentation based on package filters. NarrativeMethodVisitor injects trace capture calls using ASM's AdviceAdapter with try-catch-rethrow for exception tracking. Requires ASM 9.7+.

  • Class
    Description
    Configuration record for the Java agent specifying which packages to instrument.
    Runtime support for the Java agent providing the shared NarrativeContext and ValueRenderer.
    Orchestrates ASM class transformation by coordinating visitors and metadata collection.
    ClassFileTransformer that selects classes for trace instrumentation based on package filters.
    ASM ClassVisitor that delegates to NarrativeMethodVisitor for eligible methods.
    ASM AdviceAdapter that injects trace capture calls with try-catch-rethrow for exception tracking.
    Java agent entry point (premain) that registers the class file transformer.