Commit graph

56 commits

Author SHA1 Message Date
Pavel Pautov
72d8eed53a Fix build against Nginx 1.22 (fix #85).
Some checks failed
Ubuntu build / build-module (push) Has been cancelled
2025-01-22 13:05:02 -08:00
Eugene Grebenschikov
f578402f19 Verify export via TLS (#12).
Co-authored-by: Pavel Pautov <p.pautov@f5.com>
2024-12-20 17:40:47 -08:00
Pavel Pautov
9dc4dc2803 Verify custom exporter headers support (#62). 2024-12-20 14:53:37 -08:00
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
Eugene
c9136f2ec8
Verify custom resource attributes support (#32).
Co-authored-by: p-pautov <37922380+p-pautov@users.noreply.github.com>
2024-12-19 17:53:38 -08:00
Eugene Grebenschikov
1d25954274 Download the latest otelcol for CI tests.
Co-authored-by: Pavel Pautov <p.pautov@f5.com>
2024-12-18 17:45:50 -08:00
Eugene Grebenschikov
be30eeffc1 Verify HTTP scheme support in endpoint (#60). 2024-12-18 17:06:21 -08:00
Eugene Grebenschikov
1e183a3fa9 Use pytest for tests. 2024-12-17 22:27:27 -08:00
Nikita Vakula
6c1659a20b Support export via TLS (fix #12). 2024-11-21 11:06:40 -08:00
Pavel Pautov
da2e4eb11b Trigger CI build on pull requests.
Also, use default 'run-name' for more informative message.
2024-11-19 15:49:54 -08:00
Pavel Pautov
f45b618931 Rename CI workflow file to 'ubuntu.yml'. 2024-11-19 15:49:54 -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
Eugene Grebenschikov
1074d02758 Use github repos for nginx and nginx-tests. 2024-10-04 13:26:51 -07: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
Pavel Pautov
4c24716eef Don't force C++ standard for user builds.
This fixes build against C++17 enabled prebuilt dependencies.
2024-07-23 09:22:48 -07:00
Pavel Pautov
10215eee1b Support building with latest gRPC versions (up to v1.65.0). 2024-07-23 09:22:48 -07:00
Pavel Pautov
6ed3910afb Support custom versions of auto-fetched build dependencies. 2024-07-23 09:22:48 -07:00
Pavel Pautov
01a40c271e Unify CMake and Nginx build system defaults.
Provide generic environment variable to adjust CMake settings from Nginx
build system.
2024-07-23 09:22:48 -07:00
Dmitry Plotnikov
d381713639 Fix undefined symbols error on Mac (fix #38). 2024-03-13 12:23:52 -07:00
Pavel Pautov
30b9b73546 Disable unnecessary gRPC features to reduce binary size.
Incidentally, this also removes RE2 code from the binary.
2024-03-12 14:43:02 -07:00
Dmitry Plotnikov
5a0071f497 Enforce compiler warnings in CI build only. 2024-03-08 21:40:50 -08:00
Dmitry Plotnikov
d6d7ce1015 Bump gRPC to v1.49.4 to support building with GCC 13 (fix #13). 2024-03-08 21:40:50 -08:00
Dmitry Plotnikov
fa28f37dab Stop using system provided RE2 for static build.
Starting with 2023-06-01 RE2 publicly depends on Abseil, so we can't use
system provided RE2 together with gRPC-bundled Abseil.
2024-03-08 21:40:50 -08: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
aac5678def Update PR template.
Removed documentation task, as most of it is hosted externally for now.
2024-02-06 22:12:26 -08:00
Pavel Pautov
c8c71688cf Update commit message guidelines. 2024-02-06 22:12:26 -08:00
Pavel Pautov
7edca7a3ec Removed NOTICE, it's covered by README.md and LICENSE already. 2024-02-06 22:12:26 -08:00
Dmitry Plotnikov
fa280e1ffe Bump gRPC and opentelemetry-cpp versions.
Move on to gRPC v1.46.7 and opetelemtry-cpp v1.11.0, last versions that
support C++11.
2024-02-06 17:22:48 -08:00
Eugene Grebenschikov
0491cc05ee Add manual run of actions. 2024-02-06 10:59:40 -08:00
Evgeny
1971b4f17f
Bumps actions/download-artifact and actions/upload-artifact from 3 to 4. 2023-12-26 12:14:30 -08:00
dependabot[bot]
1a43ddc6f1 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-12 16:08:38 -08:00
Pavel Pautov
958a4b6962 Prevent crash for HTTP/0.9 requests (fix #22). 2023-12-08 11:46:28 -08:00
Michael Vernik
fc7e69a0a7
Updated README: Added steps for installation from packages. (#19) 2023-11-07 15:37:30 -08:00
Nina Forsyth
9f359ff0eb
Update README.md (#14)
Updating two items
2023-10-24 13:08:59 -07:00
Michael Vernik
f6d041fbf2
add otel_exporter directive to simple tracing example in readme (#15) 2023-10-24 13:04:59 -07:00
Michael Vernik
0da0f1537e Updated README: Clarified dynamic control. Added link to Github repo. 2023-09-01 13:00:56 -07:00
Michael Vernik
98fb4d1d21
Added to intro, more context/details to building/installation. Remove… (#7)
Updated README with more detailed instructions on building, installing, running and testing
2023-08-31 22:32:56 -07:00
dplotnikov-f5
c732ff5fd1
Added docs. (#6)
Added docs.
2023-08-21 13:51:06 -07:00
Evgeny
3d528bb093
add: functional tests (#5)
* add functional tests
2023-08-16 17:20:25 -07:00
Evgeny
f6f2525dd7
fix: building with nginx with HTTP/3 (#4) 2023-06-14 09:58:46 -07: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
Pavel Pautov
5f611a0fc8 Don't assume Make executable name. 2023-06-13 16:59:02 -07:00
Pavel Pautov
38e48ff778 Add interface for Nginx build system. 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