Skip to content

fix: required user agent header - #662

Merged
marcalff merged 9 commits into
open-telemetry:mainfrom
proost:fix-required-user-agent-header
Aug 29, 2026
Merged

fix: required user agent header#662
marcalff merged 9 commits into
open-telemetry:mainfrom
proost:fix-required-user-agent-header

Conversation

@proost

@proost proost commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

fix: #474

Current implementation assumed that user agent header always exists. But it didn't. So i adding check.

It is quite difficult to add unit test case. If have any idea, I will happily accept it.

@proost
proost requested a review from a team as a code owner August 19, 2026 15:28
Comment thread instrumentation/otel-webserver-module/src/nginx/ngx_http_opentelemetry_module.c Outdated

@lalitb lalitb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The CentOS 7 failure appears unrelated to this change. The container seems to fail during yum install git because vault.centos.org returns HTTP 403, before the module is built or the new regression test runs.

@marcalff marcalff added the pr:fix-merge-conflicts Please fix merge conflicts for this pr label Aug 21, 2026
proost added 5 commits August 22, 2026 00:44
…r-agent-header' of github.com:proost/opentelemetry-cpp-contrib; branch 'main' of github.com:open-telemetry/opentelemetry-cpp-contrib into fix-required-user-agent-header
@marcalff marcalff removed the pr:fix-merge-conflicts Please fix merge conflicts for this pr label Aug 29, 2026
@marcalff
marcalff merged commit b1d44b5 into open-telemetry:main Aug 29, 2026
7 checks passed
@proost
proost deleted the fix-required-user-agent-header branch August 29, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nginx instrumented with CPP otel contrib rejects requests without User-Agent field.

3 participants