Skip to content

Add tests to assert app starts with observability toggled #3

Description

@pmcfadin

Goal\n----\nEnsure observability code paths don’t break the application when optional deps or endpoints are absent.\n\nAcceptance criteria\n-------------------\n1. Parametrised pytest that runs app startup twice: a) OBSERVABILITY_ENABLED=false b) true but OTEL/Loki endpoints unset.\n2. Test asserts FastAPI openapi json loads and /metrics returns 200 when Instrumentator present.\n3. CI passes in both scenarios.\n

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions