Skip to content

Commit b72202e

Browse files
committed
add error group info
1 parent 2fefd04 commit b72202e

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed

.idea/codeStyles/Project.xml

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/sbt.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-website.iml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="PYTHON_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$" />
6+
<orderEntry type="inheritedJdk" />
7+
<orderEntry type="sourceFolder" forTests="false" />
8+
</component>
9+
</module>

src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,34 @@ The following APIs provide additional functionality, such as setting app server
624624
When inside a transaction, the last call to `noticeError` wins. Only 1 error will be reported per transaction.
625625
</td>
626626
</tr>
627+
##here
628+
629+
<tr>
630+
<td>
631+
Classes that implement the [`ErrorGroupCallback`](https://newrelic.github.io/java-agent-api/javadoc/index.html?com/newrelic/api/agent/NewRelic.html) interface are used to generate grouping keys for errors that will be sent to
632+
New Relic. These keys will be used to group error messages in the Errors Inbox UI.
633+
</td>
634+
635+
<td>
636+
[`public interface ErrorGroupCallback {
637+
String generateGroupingString(ErrorData errorData);
638+
}`](https://newrelic.github.io/java-agent-api/javadoc/index.html?com/newrelic/api/agent/NewRelic.html)
639+
640+
</td>
641+
</tr>
642+
<tr>
643+
<td>
644+
To register an [`ErrorGroupCallback`](https://newrelic.github.io/java-agent-api/javadoc/index.html?com/newrelic/api/agent/NewRelic.html) that's used to generate a grouping key for the supplied
645+
error.
646+
647+
</td>
648+
649+
<td>
650+
[`NewRelic.setErrorGroupCallback(errorGroupCallback)`](https://newrelic.github.io/java-agent-api/javadoc/index.html?com/newrelic/api/agent/NewRelic.html)
651+
652+
</td>
653+
</tr>
654+
627655

628656
<tr>
629657
<td>

0 commit comments

Comments
 (0)