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

feat(loggroupgenerator): add otel #124

Merged
merged 1 commit into from
Dec 6, 2023
Merged

feat(loggroupgenerator): add otel #124

merged 1 commit into from
Dec 6, 2023

Commits on Dec 6, 2023

  1. feat(loggroupgenerator): add otel

    This commit introduces the necessary OTEL instrumentation to our utility
    script. This is an absolutely insane amounts of dependencies
    (dynamodb?!) and boilerplate. The one nice thing is, as currently coded,
    all configuration can be done via env vars, e.g:
    
    ```
    export OTEL_SERVICE_NAME=loggroupgenerator
    export OTEL_TRACES_EXPORTER=otlp
    export OTEL_EXPORTER_OTLP_ENDPOINT=https://157675308050.collect.observe-eng.com/v1/otel
    export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
    export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <token>"
    ```
    
    This means we can very easily export to stdout as well:
    ```
    export OTEL_TRACES_EXPORTER=console
    ```
    jta committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    6ec9c10 View commit details
    Browse the repository at this point in the history