<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Baggage :: Mot-clé :: Formation OpenTelemetry</title><link>https://k8s-school.fr/labs/otel/fr/tags/baggage/index.html</link><description/><generator>Hugo</generator><language>fr-fr</language><copyright>Copyright (c) 2026 Fabrice Jammes - Licensed under CC BY-SA 4.0</copyright><lastBuildDate>Mon, 06 Jul 2026 14:55:00 +0200</lastBuildDate><atom:link href="https://k8s-school.fr/labs/otel/fr/tags/baggage/index.xml" rel="self" type="application/rss+xml"/><item><title>Lab 7 — Traces manuelles &amp; échantillonnage</title><link>https://k8s-school.fr/labs/otel/fr/1_labs/70-otel-traces/index.html</link><pubDate>Mon, 06 Jul 2026 14:55:00 +0200</pubDate><guid>https://k8s-school.fr/labs/otel/fr/1_labs/70-otel-traces/index.html</guid><description>L’instrumentation automatique (Lab 2) trace les frontières techniques (HTTP, SQL). Pour tracer la logique métier, on crée des spans manuels. Dans ce lab : un span manuel via annotation, la propagation de contexte vers un autre service, le bagage, puis la maîtrise du volume avec le tail sampling.
Prérequis Labs 1 à 6 terminés, agent Java actif sur review-service. Port-forward UIs actif (./scripts/open-ui.sh). Les variables de la formation chargées dans votre shell : . ./scripts/env.sh. Elles donnent le port du review-service ($APP_PORT, accès direct au service, pas via le frontend-proxy) ainsi que $PF_ADDR et $PF_HOST, l’adresse sur laquelle vos port-forward écoutent. Étapes Partie 1 — Spans manuels &amp; propagation Lire l’instrumentation manuelle dans ProductCatalogClient.java : @WithSpan("product-catalog.lookup") public void checkProductExists(@SpanAttribute("app.product.id") String productId) { ... Span.current().setAttribute("app.product.found", true); et dans ReviewController.java (le bagage) :</description></item></channel></rss>