Skip to content

Commit

Permalink
Report metrics when unusually large strings are parsed (#2569)
Browse files Browse the repository at this point in the history
Report metrics when unusually large strings are parsed
  • Loading branch information
carterkozak authored Mar 22, 2023
1 parent ede76be commit e752fa8
Show file tree
Hide file tree
Showing 8 changed files with 1,062 additions and 8 deletions.
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-2569.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: improvement
improvement:
description: Report metrics when unusually large strings are parsed using JSON mappers
created using Conjure ObjectMappers factory methods.
links:
- https://github.com/palantir/conjure-java-runtime/pull/2569
3 changes: 3 additions & 0 deletions conjure-java-jackson-serialization/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply plugin: 'com.palantir.external-publish-jar'
apply plugin: 'com.palantir.revapi'
apply plugin: 'com.palantir.metric-schema'

dependencies {
implementation project(":conjure-java-jackson-optimizations")
Expand All @@ -11,6 +12,8 @@ dependencies {
api "com.fasterxml.jackson.datatype:jackson-datatype-joda"
api "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
api "com.palantir.safe-logging:preconditions"
implementation "com.palantir.safe-logging:logger"
implementation 'com.palantir.tritium:tritium-registry'

testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"
Expand Down
Loading

0 comments on commit e752fa8

Please sign in to comment.