appmap.yml packages path matching zero classes yields a healthy-looking recording with no warning
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- observability
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 88
- Fork
- 17
- Merge medio
- 2g 2h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getappmap/appmap-java
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
getappmap/appmap-java#333 ·
-
Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)Forse già presa @dividedmind l’ha presa 4 giorni fa. Aperta
getappmap/appmap-java#331 · 1 commento · 1 assegnatario ·
-
Labeled methods should always be recorded, even if they match trivial-method filtersForse già presa @kgilpin l’ha presa 194 giorni fa. Aperta
getappmap/appmap-java#323 · 1 reazione · 2 assegnatari ·
-
Warning with Java 25Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
getappmap/appmap-java#322 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
getappmap/appmap-java#308 ·
Tutte le issue di getappmap/appmap-java
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
quelea-projection/Quelea#711 ·
-
bug pdd
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 67/100
objectionary/eo#9450 ·
I maintainer di solito rispondono entro 1 giorno
-
[EC2] DescribeAvailabilityZones should return real AWS error for unknown zone nameForse già presa @omatheusmesmo l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
area: core good first issue type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ShaftHQ/SHAFT_ENGINE#6909 ·
I maintainer di solito rispondono entro 1 giorno