Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otel: Add OpenTelemetry functionality to NGINX Unit #1463

Merged
merged 6 commits into from
Nov 12, 2024

Commits on Nov 12, 2024

  1. otel: add opentelemetry rust crate code

    This is purely the source code of the rust end of opentelemetry. It does
    not have build tooling wired up yet, nor is this used from the C code.
    
    Signed-off-by: Ava Hahn <[email protected]>
    Signed-off-by: Gabor Javorszky <[email protected]>
    avahahn authored and javorszky committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    1e3f04c View commit details
    Browse the repository at this point in the history
  2. otel: add build tooling to include otel code

    Adds the --otel flag to the configure command and the various build time
    variables and checks that are needed in this flow.
    
    It also includes the nxt_otel.c and nxt_otel.h files that are needed for
    the rest of Unit to talk to the compiled static library that's generated
    from the rust crate.
    
    Signed-off-by: Ava Hahn <[email protected]>
    Co-authored-by: Gabor Javorszky <[email protected]>
    Signed-off-by: Gabor Javorszky <[email protected]>
    avahahn and javorszky committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    6f88dc1 View commit details
    Browse the repository at this point in the history
  3. otel: add header parsing and test call state

    Enables Unit to parse the tracestate and traceparent headers and add it
    to the list, as well as calls to nxt_otel_test_and_call_state.
    
    Signed-off-by: Ava Hahn <[email protected]>
    Signed-off-by: Gabor Javorszky <[email protected]>
    avahahn authored and javorszky committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    6d9eb24 View commit details
    Browse the repository at this point in the history
  4. otel: configuration items and their validation

    Adds code responsible for users to apply the `telemetry` configuration
    options.
    
    configuration snippet as follows:
    {
        "settings": {
            "telemetry": {
                "batch_size": 20,
                "endpoint": "http://lgtm:4318/v1/traces",
                "protocol": "http",
                "sampling_ratio": 1
            }
        },
        "listeners": {
            "*:80": {
                "pass": "routes"
            }
        },
        "routes": [
            {
                "match": {
                    "headers": {
                        "accept": "*text/html*"
                    }
                },
                "action": {
                    "share": "/usr/share/unit/welcome/welcome.html"
                }
            },
            {
                "action": {
                    "share": "/usr/share/unit/welcome/welcome.md"
                }
            }
        ]
    }
    
    Signed-off-by: Ava Hahn <[email protected]>
    Signed-off-by: Gabor Javorszky <[email protected]>
    avahahn authored and javorszky committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    6a02d80 View commit details
    Browse the repository at this point in the history
  5. .editorconfig: fix bracket balance of editorconfig file

    Tiny bracket balance fix.
    
    Signed-off-by: Ava Hahn <[email protected]>
    Signed-off-by: Gabor Javorszky <[email protected]>
    javorszky committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    88c138d View commit details
    Browse the repository at this point in the history
  6. docs/openapi: update OpenAPI references

    These changes are generated by the openapi generator through a make
    command.
    
    Signed-off-by: Ava Hahn <[email protected]>
    Signed-off-by: Gabor Javorszky <[email protected]>
    avahahn authored and javorszky committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    25625b9 View commit details
    Browse the repository at this point in the history