Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
18 stars 31 forks source link

Pass tracecontext from PDF generator cookies back to app #2747

Open martinothamar opened 3 days ago

martinothamar commented 3 days ago

Description

When rendering PDF, get W3C traceparent propagated by the app and pass it back to the app when making subsequent requests.

Backend PR: https://github.com/Altinn/app-lib-dotnet/pull/924

Tested locally using Application Insights both with OTel and the classic App Insights SDK

I don't know what the best place for this code is, but at least it needs to be pretty far upstream so that the interceptor is added before any downstream requests are made.

Related Issue(s)

Verification/QA

sonarcloud[bot] commented 3 days ago

Quality Gate Failed Quality Gate failed

Failed conditions
3.2% Coverage on New Code (required ≥ 45%)
0.0% Condition Coverage on New Code (required ≥ 45%)

See analysis details on SonarQube Cloud