Skip to content

Commit

Permalink
chore: enrich span with sykmelding id (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-run authored May 2, 2024
1 parent 8cfef5f commit b821b1b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.syfo.application

import io.opentelemetry.api.trace.Span
import io.opentelemetry.instrumentation.annotations.WithSpan
import java.io.StringReader
import java.time.LocalDateTime
Expand Down Expand Up @@ -187,9 +188,12 @@ class BlockingApplicationRunner(
val avsenderSystem = healthInformation.avsenderSystem.toAvsenderSystem()

val sykmeldingId = UUID.randomUUID().toString()

val rulesetVersion = healthInformation.regelSettVersjon

// Enrich current span with sykmelding id
val currentSpan = Span.current()
currentSpan.setAttribute("sykmeldingId", sykmeldingId)

val duplicateCheck =
DuplicateCheck(
sykmeldingId,
Expand Down

0 comments on commit b821b1b

Please sign in to comment.