Skip to content

Conversation

@stanleypliu
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Related Issue

N/A

Describe this PR

Follow up PR for #680 as that was merged before this commit could be pushed. INSTALL_MONITORING variable removed from compose.yaml as it shouldn't be responsible for controlling those deps. Instead, the user is now prompted to pass that along as a build argument.

Screenshots

N/A

Alternative Approaches Considered

N/A

Review Guide

N/A

Checklist before requesting a review

  • πŸ“– Read the HOT Code of Conduct: https://docs.hotosm.org/code-of-conduct
  • πŸ‘·β€β™€οΈ Create small PRs. In most cases, this will be possible.
  • βœ… Provide tests for your changes.
  • πŸ“ Use descriptive commit messages.
  • πŸ“— Update any related documentation and include any relevant screenshots.

[optional] What gif best describes this PR or how it makes you feel?

@github-actions github-actions bot added bug Something isn't working docs Improvements or additions to documentation labels Dec 3, 2025
@stanleypliu stanleypliu added devops Related to deployment or configuration and removed bug Something isn't working labels Dec 3, 2025
Copy link
Member

@spwoodcock spwoodcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we could possibly merge the two env vars into one?

For FieldTM we simply have the MONITORING var present in the prod github env vars - this results in both the dependencies being installed, and sentry being configured at server init

@stanleypliu
Copy link
Collaborator Author

Do you think we could possibly merge the two env vars into one?

For FieldTM we simply have the MONITORING var present in the prod github env vars - this results in both the dependencies being installed, and sentry being configured at server init

We can, although I originally wanted to retain the MONITORING variable just in case we want to have a different backend for sending the traces in future. Unless you think that this is premature optimisation πŸ˜„

@spwoodcock
Copy link
Member

FieldTM works like this, based on the env:

MONITORING= dont install deps, dont enable monitoring on deploy

MONITORING=sentry install deps, configure sentry

MONITORING=openobserve install deps, configure generic otel openobserve

Would similar make sense here?

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

Labels

devops Related to deployment or configuration docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants