Skip to content

Commit 15dee99

Browse files
committed
Update Sentry Java SDK to 6.3.1
Added new entries for serialization-max-depth and renamed shutdown-timeout to shutdown-timeout-millis (to align with the Java SDK) fixes #31, fixes #48 -=david=-
1 parent 72ecd65 commit 15dee99

18 files changed

Lines changed: 102 additions & 97 deletions

File tree

.clj-kondo/config.edn

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
;;
2+
;;
3+
;;
14
{:skip-comments true
2-
:linters
3-
{:single-key-in true
4-
:unsorted-required-namespaces {:level :warning}
5-
:unresolved-symbol {:exclude [(expectations.clojure.test/defexpect)]}
6-
:unused-binding {:exclude-destructured-as true}
7-
:unused-referred-var {:exclude {clojure.test [is deftest testing]
8-
expectations.clojure.test [defexpect]}}
9-
:lint-as {expectations.clojure.test/defexpect clojure.test/deftest}}}
5+
:linters {:single-key-in {:level :warning}
6+
:unsorted-required-namespaces {:level :warning}
7+
:unresolved-symbol {:exclude [(expectations.clojure.test/defexpect)]}
8+
:unused-binding {:exclude-destructured-as true}
9+
:unused-referred-var {:exclude {clojure.test [is deftest testing]
10+
expectations.clojure.test [defexpect]}}}
11+
:lint-as {expectations.clojure.test/defexpect clojure.test/deftest}}

.lsp/config.edn

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{:clean {:ns-inner-blocks-indentation :next-line
2+
:sort {:import-classes {:classes-per-line -1}
3+
:refer {:max-line-length 256}}}
4+
:hover {:arity-on-same-line? true
5+
:hide-file-location? true}
6+
:use-metadata-for-privacy? true}

CHANGELOG.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ endeavour to be non-breaking (by moving to new names rather than by
1010
breaking existing names). COMMITS is an ever-increasing counter of
1111
commits since the beginning of this repository.
1212

13-
## [Unreleased]
13+
## [6.3.181]
1414

15-
### Changed
16-
### Added
17-
### Removed
15+
- Update Sentry Java SDK to 6.3.1.
16+
- shutdown-timeout renamed to shutdown-timeout-millis in keeping with the Java SDK changes
17+
- added `serialization-max-depth` to work around circular reference errors when performing serialization of throwables
18+
- defaults to 5, although you can adjust lower if a circular reference loop occurs
1819

1920
## [5.7.180]
2021

@@ -288,7 +289,8 @@ commits since the beginning of this repository.
288289
compatible with Sentry 10.0.1 and below. If you wish to use those
289290
versions, please continue to use sentry-clj 1.7.30.
290291

291-
[Unreleased]: https://github.com/getsentry/sentry-clj/compare/5.7.180...HEAD
292+
[Unreleased]: https://github.com/getsentry/sentry-clj/compare/6.3.181...HEAD
293+
[6.3.181]: https://github.com/getsentry/sentry-clj/compare/5.7.180...6.3.181
292294
[5.7.180]: https://github.com/getsentry/sentry-clj/compare/5.7.178...5.7.180
293295
[5.7.178]: https://github.com/getsentry/sentry-clj/compare/5.7.177...5.7.178
294296
[5.7.177]: https://github.com/getsentry/sentry-clj/compare/5.7.176...5.7.177

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ If you want an interpolated message, you need to provide the full map, i.e.,
6464
| `:release` | All events are assigned to a particular release |
6565
| `:dist` | Set the application distribution that will be sent with each event |
6666
| `:server-name` | Set the server name that will be sent with each event |
67-
| `:shutdown-timeout` | Wait up to X milliseconds before shutdown if there are events to send | 2000ms
67+
| `:shutdown-timeout-millis` | Wait up to X milliseconds before shutdown if there are events to send | 2000ms
6868
| `:in-app-includes` | A seqable collection (vector for example) containing package names to include when sending events |
6969
| `:in-app-excludes` | A seqable collection (vector for example) containing package names to ignore when sending events |
7070
| `:ignored-exceptions-for-type` | Set exceptions that will be filtered out before sending to Sentry (a set of Classnames as Strings) |
@@ -81,7 +81,8 @@ If you want an interpolated message, you need to provide the full map, i.e.,
8181
| `:contexts` | A map of key/value pairs to attach to every Event that is sent. |
8282
| | [More Information](https://docs.sentry.io/platforms/java/enriching-events/context/) |
8383
| `:traces-sample-rate` | Set a uniform sample rate(a number of between 0.0 and 1.0) for all transactions for tracing |
84-
| `:traces-sample-fn` | A function (taking a custom sample context and a transaction context) enables you to control trace transactions |
84+
| `:traces-sample-fn` | A function (taking a custom sample context and a transaction context) enables you to control trace transactions |
85+
| `:serialization-max-depth` | Set to a lower number, i.e., 2, if you experience circular reference errors when sending events | 5
8586

8687
Some examples:
8788

@@ -189,6 +190,6 @@ Each key is optional.
189190

190191
## License
191192

192-
Copyright © 2021 Coda Hale, Sentry
193+
Copyright © 2022 Coda Hale, Sentry
193194

194195
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

deps.edn

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,27 @@
44
;;
55
;;
66
;;
7-
io.sentry/sentry {:mvn/version "5.7.4"}
7+
io.sentry/sentry {:mvn/version "6.3.1"}
88
ring/ring-core {:mvn/version "1.9.5"}}
99

10-
:aliases {:build {:deps {io.github.seancorfield/build-clj {:git/tag "v0.8.0"
11-
:git/sha "9bd8b8a"}}
10+
:aliases {:build {:deps {io.github.seancorfield/build-clj {:git/tag "v0.8.3"
11+
:git/sha "7ac1f8d"}}
1212
:ns-default scripts.build}
1313

1414
:test {:extra-paths ["test"]
15-
:extra-deps {cheshire/cheshire {:mvn/version "5.10.2"}
15+
:extra-deps {cheshire/cheshire {:mvn/version "5.11.0"}
1616
com.github.seancorfield/expectations {:mvn/version "2.0.160"}
17-
lambdaisland/kaocha {:mvn/version "1.66.1034"}
18-
lambdaisland/kaocha-cloverage {:mvn/version "1.0.75"}
19-
lambdaisland/kaocha-junit-xml {:mvn/version "0.0.76"}
17+
lambdaisland/kaocha {:mvn/version "1.69.1069"}
18+
lambdaisland/kaocha-junit-xml {:mvn/version "1.16.98"}
2019
orchestra/orchestra {:mvn/version "2021.01.01-1"}
2120
org.clojure/test.check {:mvn/version "1.1.1"}}}
2221

23-
:antq {:replace-deps {com.github.liquidz/antq {:mvn/version "1.6.2"}
22+
:antq {:replace-deps {com.github.liquidz/antq {:mvn/version "1.9.874"}
2423
org.slf4j/slf4j-nop {:mvn/version "1.7.36"}}
2524
:exec-fn antq.tool/outdated
26-
:exec-args {:directory ["."]
27-
:exclude [org.clojure/clojure]
28-
:skip ["pom"]
25+
:exec-args {:skip ["pom"]
2926
:verbose true
3027
:upgrade true
3128
:download true
29+
:no-diff true
3230
:force true}}}}

examples/basic/deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;;
66
;;
77
ch.qos.logback/logback-classic {:mvn/version "1.2.11"}
8-
io.sentry/sentry {:mvn/version "5.7.4"}
8+
io.sentry/sentry {:mvn/version "6.3.1"}
99
io.sentry/sentry-clj {:local/root "../../../sentry-clj"}
1010
org.clojure/tools.cli {:mvn/version "1.0.206"}
1111
org.clojure/tools.logging {:mvn/version "1.2.4"}

examples/ring_with_tracing/deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ch.qos.logback/logback-classic {:mvn/version "1.2.11"}
88
integrant/integrant {:mvn/version "0.8.0"}
99
integrant/repl {:mvn/version "0.3.2"}
10-
io.sentry/sentry {:mvn/version "5.7.4"}
10+
io.sentry/sentry {:mvn/version "6.3.1"}
1111
io.sentry/sentry-clj {:local/root "../../../sentry-clj"}
1212
org.clojure/tools.cli {:mvn/version "1.0.206"}
1313
org.clojure/tools.logging {:mvn/version "1.2.4"}

examples/ring_with_tracing/src/ring_with_tracing/main.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
(run-jetty handler (-> opts (dissoc :handler) (assoc :join? false))))
1818

1919
(defmethod ig/init-key :handler/hello [_ {:keys [name]}]
20-
(fn [request]
20+
(fn [_request]
2121

2222
(with-start-child-span "task" "my-child-operation"
2323
(Thread/sleep 1000))

examples/uncaught/deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;;
66
;;
77
ch.qos.logback/logback-classic {:mvn/version "1.2.11"}
8-
io.sentry/sentry {:mvn/version "5.7.4"}
8+
io.sentry/sentry {:mvn/version "6.3.1"}
99
io.sentry/sentry-clj {:local/root "../../../sentry-clj"}
1010
org.clojure/tools.cli {:mvn/version "1.0.206"}
1111
org.clojure/tools.logging {:mvn/version "1.2.4"}

examples/uncaught/src/uncaught/main.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[sentry-logger]
1111
(Thread/setDefaultUncaughtExceptionHandler
1212
(reify Thread$UncaughtExceptionHandler
13-
(uncaughtException [_ thread ex]
13+
(uncaughtException [_ _thread ex]
1414
(log/warn ex "Uncaught Exception!")
1515
(sentry-logger {:throwable ex})))))
1616

0 commit comments

Comments
 (0)