getappmap / getappmap/appmap-java

Record the actual values for the SQL calls

Open
#304 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
88
Forks
17
Avg merge
2d 2h
Merged PRs (30d)
1

Description

Currently SQL queries are captured without the actual values passed, for example:

    {
      "event": "call",
      "id": 113921,
      "sql_query": {
        "database_type": "H2",
        "sql": "insert into owners (address,city,first_name,last_name,telephone,id) values (?,?,?,?,?,default)"
      },
      "thread_id": 1
    },

Note that the values passed as parameters are not recorded. While the overhead might be prohibitive to enable this in general case, it might be very useful to capture this data to debug specific problems.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named; begin by locating the Java agent’s SQL-call capture path and checking how parameterized calls are represented. Done means there is a way to record the actual parameter values for SQL calls while avoiding mandatory overhead for general capture.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.