Skip to content

Commit

Permalink
chore: wrap mq processing in span
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-run committed May 2, 2024
1 parent bae52ba commit 190a4f0
Show file tree
Hide file tree
Showing 3 changed files with 488 additions and 483 deletions.
10 changes: 6 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ val commonsCodecVersion = "1.16.1"
val ktfmtVersion = "0.44"
val snappyJavaVersion = "1.1.10.5"
val jsonVersion = "20240303"
val opentelemetryVersion = "2.3.0"

plugins {
id("application")
Expand All @@ -47,7 +48,7 @@ application {

repositories {
mavenCentral()
maven(url= "https://packages.confluent.io/maven/")
maven(url = "https://packages.confluent.io/maven/")
maven {
url = uri("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}
Expand Down Expand Up @@ -91,6 +92,7 @@ dependencies {
implementation("no.nav.helse.xml:kith-hodemelding:$syfoXmlCodegenVersion")
implementation("no.nav.helse.xml:kith-apprec:$syfoXmlCodegenVersion")
implementation("com.ibm.mq:com.ibm.mq.allclient:$ibmMqVersion")
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:$opentelemetryVersion")
constraints {
implementation("org.json:json:$jsonVersion") {
because("override transient from com.ibm.mq:com.ibm.mq.allclient")
Expand Down Expand Up @@ -127,9 +129,9 @@ dependencies {
tasks {

shadowJar {
mergeServiceFiles {
setPath("META-INF/services/org.flywaydb.core.extensibility.Plugin")
}
mergeServiceFiles {
setPath("META-INF/services/org.flywaydb.core.extensibility.Plugin")
}
archiveBaseName.set("app")
archiveClassifier.set("")
isZip64 = true
Expand Down
5 changes: 2 additions & 3 deletions src/main/kotlin/no/nav/syfo/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,10 @@ fun launchListeners(
virusScanService,
duplicationService,
smtssClient,
)
.run(
inputconsumer,
inputconsumer,
backoutProducer,
)
.run()
}
}
}
Expand Down
Loading

0 comments on commit 190a4f0

Please sign in to comment.