appmap.yml packages path matching zero classes yields a healthy-looking recording with no warning
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
Start with the packages: handling in appmap.yml config loading and the bytecode instrumentation of application classes; the issue does not name the source files. Reproduce by running PetClinicIntegrationTests#testOwnerDetails with a misspelled package path and check the recording size and stderr. Done when a path matching zero classes prints a warning naming that entry, and an all-zero config fails with an error.
索引モデルが issue の本文から書いたものです。
説明
Summary
An appmap.yml whose packages: paths match zero classes produces a recording that looks healthy (HTTP route, status, SQL all present) with no warning. Not one line of application code is captured. With no appmap.yml the agent auto-detects the package and the recording is complete, so a wrong config is strictly worse than no config.
Agent 1.30.1, CLI 3.203.0, spring-petclinic @ b26f235, Java 17.
Repro
# appmap.yml (real package is ...petclinic.owner; one-character typo)
packages:
- path: org.springframework.samples.petclinic.owners
mvn -Dtest=PetClinicIntegrationTests#testOwnerDetails test
appmap query endpoints --appmap-dir tmp/appmap
appmap query find queries --appmap-dir tmp/appmap --limit 3
Observed
No warning from agent or CLI. endpoints shows GET /owners/{ownerId} 200, find queries shows the eight expected SQL statements. The only tell is the file size (3.2 KB vs 8.6 KB with the right config) and an empty appmap query hotspots.
Cause
packages: governs only bytecode instrumentation of application classes; HTTP and JDBC events come from framework hooks that do not consult it. "Zero classes matched" is not treated as an error or warning, and the configured path is never validated against the classpath.
Expected
At the end of a recording the agent knows how many classes each path: entry instrumented. A path: matching zero classes should warn on stderr naming the entry; a config where every entry matched zero classes should be a hard error, not a silent 3 KB recording.
- 主要言語
- Java
- スター
- 88
- フォーク
- 17
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getappmap/appmap-java のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
getappmap/appmap-java#333 ·
-
Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)対応中かも @dividedmind が 2 日前に担当しました。 オープン
getappmap/appmap-java#331 · コメント 1 件 · 担当者 1 名 ·
-
Labeled methods should always be recorded, even if they match trivial-method filters対応中かも @kgilpin が 192 日前に担当しました。 オープン
getappmap/appmap-java#323 · リアクション 1 件 · 担当者 2 名 ·
-
Warning with Java 25オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
getappmap/appmap-java#322 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
getappmap/appmap-java#308 ·
getappmap/appmap-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
utopia-rise/godot-jvm#1004 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
spring-projects/spring-grpc#442 ·
-
Expose numberOfPermits in RateLimiterEvent.toString() and the ratelimiterevents actuator DTO対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
resilience4j/resilience4j#2547 ·
メンテナーはふだん 9 日以内に返信
-
Clock.MakeDate continues execution and returns a rolled-over instant after dispatching error on invalid date対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
mit-cml/appinventor-sources#4155 ·
メンテナーはふだん 1 日以内に返信