open-telemetry / opentelemetry-cpp-contrib

https://opentelemetry.io/
Apache License 2.0
121 stars 130 forks source link

Nginx: No span created when request fails before proxy phase. #279

Open tiithansen opened 1 year ago

tiithansen commented 1 year ago

Steps to reproduce When sending a request with too large header (larger than 8kb). Then nginx rejects/responds with status 400 before any spans are created.

What is the expected behavior? This module should create a span with error status. If possible it should contains cause/exception what happened.

What is the actual behavior? No traces and spans are generated.

Additional context This might not be possible if rejection is done before any modules are executed. But it could be possible to catch in log phase. But it might be tricky to detect cause.