DataDog / kong-plugin-ddtrace

Datadog APM Plugin for Kong Gateway
Apache License 2.0
15 stars 7 forks source link

feat: expose TraceId and ParentID to other plugins #61

Closed dmehala closed 1 month ago

dmehala commented 1 month ago

Description

This commit adds two fields to kong.ctx.shared and ngx.var:

Those fields can be consumed by other Kong plugins or in the underlying NGINX configuration for log correlation.

Resolves #25

dmehala commented 1 month ago

Hey @pablomartinezbernardo

Since your last review, I added an example. Would you mind checking if it works for you? 🙇

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.68%. Comparing base (15d7bd3) to head (ac21681).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #61 +/- ## ======================================= Coverage 92.68% 92.68% ======================================= Files 7 7 Lines 615 615 ======================================= Hits 570 570 Misses 45 45 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.