WM

wb04307201/methodtracelog

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

48 stars 1 forks 质量 73 趋势 37Apache-2.0

非侵入AOP方法追踪+微量树+提醒春靴. 包括一个独立的MCP服务器([[T0]),通过stdio向AI代理暴露同样的能力.

概览

非侵入AOP方法追踪+微量树+提醒春靴. 包括一个独立的MCP服务器(methodTraceLog-mcp),通过stdio向AI代理暴露同样的能力. http://localhost:8080/methodTraceLog/panel——有4个分页的单页: 概览 (概览) / (追踪搜索+导出) /日志文件 (文件取景器+实时取景器) /反编译 (CFR分解). 当安全性. api-key是非空的,/methodTraceLog/panel(HTML)时,所有路线都需要X-Api-Key(或MTRACE SESSION cookie). LogAspect 将痕量/ sanid / pspanid 输入 SLF4J MDC. 在您的日志模式中使用它们来连接整个呼叫链的日志 : 对于HTTP边界,TraceContextFilter在入道时会读出痕量母,休息截取器在出道时会写出——上下游痕量自动加入. 保安的时候.

概述(AI 翻译)

英语

非侵入AOP方法追踪+微量树+提醒春靴. 包括一个独立的MCP服务器([[T0]),通过stdio向AI代理暴露同样的能力.

– – . . .

□ 特性

{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢? |-|-|-. ** 方法追踪** 以AOP为基础,全调用链,带有[[T1] / [[T2] / pspanid; 采样; @AspectLog 以覆盖显示名称。 ** ** 微米Timer,每方法+亲子[T6];通过[T7] 暴露。 ** ** Log 文件查看器 ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** CFR 分解** 分类道上任何类的 HTTP 端点(app / 第3-party / fat-jar 筑巢),说明已剥去 ** ** OTel 导出 ** 自动桥追踪事件到 OpenTeleometry OTLP/HTTP 当 [ opentelemetry-sdk] 在类路径上 * **

  • **W3C 痕量母 ** * * * * 自动注射/取出 traceparent HTTP 入境和RestClient出境的页眉 ** ** Cookie session ** 通过 POST /methodTraceLog/login 浏览器登录, HTTP [T12] 用于 CLI / MCP {} ** ** MCP 服务器 ** & > 独立 stdio 进程; 15个工具, 多主机, 通过 HTTP 转发到您的启动器

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Method Trace Log

Non-intrusive AOP method tracing + trace tree + alerting for Spring Boot. Includes a standalone MCP server (methodTraceLog-mcp) that exposes the same capabilities to AI agents over stdio.


Features

Method tracing AOP-based, full call chain with traceid / spanid / pspanid; sampling; @AspectLog to override the display name
Metrics Micrometer Timer per method + parent/child MethodTraceInfo tree; exposed via actuator/methodtrace
Log file viewer Read / filter / download log files; WebSocket live tail; path-traversal safe
CFR decompile HTTP endpoint for any class on the classpath (app / 3rd-party / fat-jar nested), annotations stripped
OTel export Auto-bridges trace events to OpenTelemetry OTLP/HTTP when opentelemetry-sdk is on the classpath
W3C traceparent Auto-injects / extracts traceparent header for HTTP inbound and RestClient outbound
Cookie session Browser login via POST /methodTraceLog/login, HTTP X-Api-Key for CLI / MCP
MCP server Standalone stdio process; 15 tools, multi-host, forwards to your starter over HTTP

Quick Start

Add the dependency


    io.github.wb04307201
    methodTraceLog-spring-boot-starter
    1.1.0

Minimal configuration

method-trace-log:
  log:
    enable: true
  file:
    enable: true
    path: ./logs
  security:
    api-key: change-me-in-production   # required in production; empty disables auth (dev only)

management:
  endpoints:
    web:
      exposure:
        include: methodtrace           # for the /actuator/methodtrace panel data

Open the panel

http://localhost:8080/methodTraceLog/panel — single page with 4 tabs: 概览 (overview) / 调用记录 (trace search + export) / 日志文件 (file viewer + real-time tail) / 反编译 (CFR decompile).


Configuration Reference

method-trace-log:
  log:
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sql-forge-mcp": { "command": "jbang.cmd", "args": [ "io.github.wb04307201:methodTraceLog-mcp:1.1.0", "--method-trace-log.mcp.hosts[0].name=local-dev", "--method-trace-log.mcp.hosts[0].url=http://localhost:8080", "--method-trace-log.mcp.hosts[0].description=Local dev", "--method-trace-log.mcp.hosts[0].api-key=change-me-in-production" ] } } }