pact-foundation/pact-reference

Verifier CLI: Support OpenTelemetry and print tracing context on interactions that fail to verify

Ouverte

#450 ouverte le 24 juin 2024

 (4 commentaires) (0 réaction) (0 personne assignée)Rust (50 forks)auto 404
awaiting feedbackenhancementhelp wantedsmartbear-supported

Métriques du dépôt

Stars
 (103 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

When verifying whether a response matches the interaction the cli already prints what did and what didn't match. We are verifying numerous interactions in pipelines. We also have enabled distributed tracing (OpenTelemetry) for our applications. Since troubleshooting exactly which request failed and why it would be useful to know the trace id (traceparent) for the request that failed.

Therefore, it would be nice if the verifier would emit tracing via OpenTelemetry and print the tracing context on each failed interaction. Alternatively, if this is too large of a feature/discussion, we could also print certain response headers in case of failure. This could be used to print the traceparent header.

Guide contributeur