
wb04307201/methodtracelog
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
非包括的な AOP メソッドトレース + トレースツリー + Spring Boot の警告. スタンドアローン MCP サーバー (`methodTraceLog-mcp`) を stdio 上でAI エージェントに同じ機能を公開します.
概要
非包括的な AOP メソッドトレース + トレースツリー + Spring Boot の警告. スタンドアローンMCPサーバー(methodTraceLog-mcp)は、stdio上のAIエージェントに同じ機能を公開しています。 [http://localhost:8080/methodTraceLog/panel — 4つのタブを持つ単一ページ: 比 (overview) / 解析用 (trace search + export) / 日志文件 (file viewer + リアルタイム tail) / 反論 (CFR decompile). すべてのルートには、security.api-key が非空の場合、X-Api-Key (または MTRACE SESSION Cookie) が必要です。 /methodTraceLog/panel (HTML)。 logAspect は、SLF4J MDC にトレースID / spanid / pspanid を置く。 ログバックパターンで使用して、コールチェーンを渡るログを関連付けます。 HTTP バウンダリの場合、TraceContextFilter はトレースレディを読み込み、ResendClient インターセプターは、上流および下流トレースが自動的に結合されるように書きます。 セキュリティーの場合.
概要(AI 翻訳)
日本語 English
非包括的な AOP メソッドトレース + トレースツリー + Spring Boot の警告. スタンドアローン MCP サーバー (
methodTraceLog-mcp) を stdio 上でAI エージェントに同じ機能を公開します。
お問い合わせ
##特徴
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
お問い合わせ
|方法トレース | AOPベース、完全コールチェーン【[T1]】 / [[spanid]] / [[pspanid]]; 見本; [@AspectLogの表示名を上書きするために
|メトリック | マイクロメータ [[T5] 方法ごと + 親子[[MethodTraceInfo] ツリー; 経由露出 actuator/methodtrace] |
|ログファイルビューア | 読み書き / フィルター / ダウンロードログファイル; WebSocketライブテール; パストラバース安全 |
|CFR decompile | クラスパス上の任意のクラス(アプリ / 3rdパーティ / 脂肪瓶ネスト)のHTTPエンドポイント、アノテーション除去 |
|OTel export | OpenTelemetry OTLP/HTTP への自動橋渡しイベント [opentelemetry-sdk が classpath にある |
|W3Cトレースparent | 自動注入・抽出 [traceparent HTTPインバウンド・[RestClient] アウトバウンド |
|Cookieセッション | ブラウザログイン([POST /methodTraceLog/login)、HTTP[[X-Api-Key)による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:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?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"
]
}
}
}