Skip to content

Instantly share code, notes, and snippets.

@michael-simons
Created December 21, 2021 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-simons/009f3b608f8ee270dab33030343a1aac to your computer and use it in GitHub Desktop.
Save michael-simons/009f3b608f8ee270dab33030343a1aac to your computer and use it in GitHub Desktop.
JFR Agent description to emit events when queries are executed via Neo4j Java Driver
<?xml version="1.0" encoding="UTF-8"?>
<jfragent>
<config>
<classprefix>__JFREvent</classprefix>
<allowtostring>true</allowtostring>
<allowconverter>true</allowconverter>
</config>
<events>
<event id="bolt.TemplatedQueryRun">
<label>Templated queries</label>
<description>Execution of a query with parameters</description>
<path>Neo4j/</path>
<stacktrace>true</stacktrace>
<class>org.neo4j.driver.internal.AbstractQueryRunner</class>
<method>
<name>run</name>
<descriptor>(Ljava/lang/String;Ljava/util/Map;)Lorg/neo4j/driver/Result;</descriptor>
<parameters>
<parameter index="0">
<name>Query</name>
<description>Query being executed</description>
<contenttype>None</contenttype>
</parameter>
</parameters>
</method>
<location>WRAP</location>
</event>
</events>
</jfragent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment