Commit graph

18 commits

Author SHA1 Message Date
Pavel Pautov
a45a594801 Support sending custom headers to export endpoint (fix #62).
The headers are configured by "header" directive in "otel_exporter" block, e.g.
    otel_exporter {
        endpoint localhost:4317;
        header X-API-Token "token value";
    }
2024-12-20 14:53:37 -08:00
Pavel Pautov
88a64bb2c3 Consolidate transport related parameters into a struct.
Also, replace leftover cast with getMainConf().
2024-12-20 14:53:37 -08:00
Pavel Pautov
f633a8eef2 Fail early if "trusted_certificate" is a directory.
Previously, the error was caused by enormous std::string allocation.
2024-12-20 14:53:37 -08:00
Nikita Vakula
6c1659a20b Support export via TLS (fix #12). 2024-11-21 11:06:40 -08:00
Pavel Pautov
668077dbf7 Allow HTTP scheme in endpoint (fix #60). 2024-11-13 13:55:04 -08:00
Pavel Pautov
b5c8cd8de3 Support custom resource attributes (fix #32).
Now attributes can be set with "otel_resource_attr" directive, e.g.
    otel_resource_attr my.name "my value";
2024-11-12 19:06:46 -08:00
Pavel Pautov
4c841c1c55 Use Abseil logging for gRPC v1.65.0 and above.
Original logging method is now deprecated and results in error message
on Nginx startup.
2024-07-23 09:22:48 -07:00
Dmitry Plotnikov
93dc2b1878 Use Abseil logging for Protobuf v22 and above (fix #16). 2024-02-29 16:09:15 -08:00
Dmitry Plotnikov
b54c65005a Move gRPC/Protobuf logs handling to a dedicated file. 2024-02-29 16:09:15 -08:00
Pavel Pautov
958a4b6962 Prevent crash for HTTP/0.9 requests (fix #22). 2023-12-08 11:46:28 -08:00
Dmitry Plotnikov
470e4a2906 Do not require otel_exporter directive. 2023-06-13 16:59:02 -07:00
Dmitry Plotnikov
387d391823 Fix a crash for configs with no http block. 2023-06-13 16:59:02 -07:00
Dmitry Plotnikov
a7fbfc0573 Restore OTel context after internal redirect. 2023-06-13 16:59:02 -07:00
Pavel Pautov
6bb8e8c903 Redirect gRPC and Protobuf logs into Nginx error log.
By default, these libraries may log directly into stderr.
2023-06-13 16:59:02 -07:00
Pavel Pautov
85a3fcb38c Support custom span name and attributes. 2023-06-13 16:59:02 -07:00
Pavel Pautov
3ad853ea59 Add variables. 2023-06-13 16:59:02 -07:00
Pavel Pautov
20f365b3c1 Trace context propagation. 2023-06-13 16:59:02 -07:00
Pavel Pautov
3430e85c34 Nginx OTel module. 2023-06-13 16:59:02 -07:00