Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Juster logging - legger saksnummer i MDC ved kjøring av steg #2564

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tendestad
Copy link
Collaborator

No description provided.

@tendestad tendestad requested a review from a team as a code owner June 8, 2023 15:33
@@ -33,6 +33,7 @@ public TekniskBehandlingStegVisitor(BehandlingskontrollServiceProvider servicePr
@Override
public StegProsesseringResultat prosesser(BehandlingStegModell steg) {
LOG_CONTEXT.add("fagsak", kontekst.getFagsakId()); // NOSONAR //$NON-NLS-1$
LOG_CONTEXT.add("saksnummer", kontekst.getSaksnummer().getVerdi()); // NOSONAR //$NON-NLS-1$
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vi har prøvd å strangulere kall til fortsettBehandling(Gjenoppta..) ned til å foregå i prosesstasks, fortrinnsvis fra FortsettBehandlingTask.
Er det ikke like greit å sette loggkonteksten i disse taskene framfor å dra inn nye konsept inn i kjernen?
Sak er ikke et kjernebegrep i behandlingskontroll - den bør klare seg med modell + oppslagsnøkkel, steg, aksjonspunkt og transisjon :-)
Hva ville gjøre det lettere å skille ut behandlingskontroll som eget repo (utover grensesnitt for behandling)? BehandlingskontrollKontekst sin fagsakId brukes så få steder at det frister å skrive den ut :-)

Copy link
Collaborator

@jolarsen jolarsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tore: foreslår at du heller lar ProsessTaskDispatcher sette LogContext prosess. -
Setter saksnummer som task_parameter (PTData.setSaksnummer(String)). Da logges prosess[fagsak=...]
Behandlingskontroll . prosesserBehandling skal kalles fra task, problem løst og annen setting av LogContext i Visitor kan egentlig fjernes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants