# Java exclude framework related classes

**URL:** <https://discuss.elastic.co/t/java-exclude-framework-related-classes/319940>\
**Category:** Elastic Agent\
**Created:** [November 28, 2022, 11:28am UTC](https://discuss.elastic.co/t/java-exclude-framework-related-classes/319940 "2022-11-28T11:28:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![APandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apandey/32/98018_2.png) [@APandey](https://discuss.elastic.co/u/APandey)\
**Post date:** [November 28, 2022, 11:28am UTC](https://discuss.elastic.co/t/java-exclude-framework-related-classes/319940/1 "2022-11-28T11:28:14Z")

</div>

Hello everyone,

How can we filter out framework related classes from the final stack trace that we get for a transaction?

For reference,

```auto
{
            "stacktrace" : [
              {
                "exclude_from_grouping" : false,
                "library_frame" : true,
                "filename" : "DelegatingPreparedStatement.java",
                "classname" : "org.apache.commons.dbcp2.DelegatingPreparedStatement",
                "line" : {
                  "number" : 125
                },
                "function" : "executeQuery",
                "module" : "org.apache.commons.dbcp2"
              },
              {
                "exclude_from_grouping" : false,
                "library_frame" : true,
                "filename" : "ResultSetReturnImpl.java",
                "classname" : "org.hibernate.engine.jdbc.internal.ResultSetReturnImpl",
                "line" : {
                  "number" : 57
                },
                "function" : "extract",
                "module" : "org.hibernate.engine.jdbc.internal"
              }
]
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 26, 2022, 11:28am UTC](https://discuss.elastic.co/t/java-exclude-framework-related-classes/319940/2 "2022-12-26T11:28:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
