Add otel endpoint in weblog [php@MilanGarnier/propagation-behavior-extract]#7190
Add otel endpoint in weblog [php@MilanGarnier/propagation-behavior-extract]#7190MilanGarnier wants to merge 6 commits into
Conversation
|
|
|
|
…ker/php/common/otel_drop_in_extract_and_make_distant_call.php
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b8a4af3722
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Motivation
Add a PHP weblog endpoint that extracts distributed tracing context via the
OTel propagator API and forwards a request to a downstream URL. This is needed
to test
DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACTbehavior (restart / ignore)when context extraction goes through the OTel drop-in bridge.
Changes
GET /otel_drop_in_extract_and_make_distant_call?url=<url>(
utils/build/docker/php/common/otel_drop_in_extract_and_make_distant_call.php):OpenTelemetry\API\Globals::propagator()->extract(),which the DDTrace bridge maps to
consume_distributed_tracing_headers.url, propagating theactive context through DDTrace's auto-instrumentation.
url,status_code,request_headers, andresponse_headersfor assertion in tests.rewrite-rules.conf(with[QSA]to preservethe
urlquery parameter).Test_ExtractBehavior_Restart_Otelfor PHP >= 8.1 versionsWorkflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present