diff options
author | 2024-09-23 12:01:12 +0000 | |
---|---|---|
committer | 2024-09-23 12:01:12 +0000 | |
commit | 2f13b72e2e6911da43feebd28160a41bd6feb507 (patch) | |
tree | ca34a33d2e495c614bf759e3617185ada0e49f05 /internal/api/metrics/metrics.go | |
parent | [chore] local instance count query caching, improved status context endpoint ... (diff) | |
download | gotosocial-2f13b72e2e6911da43feebd28160a41bd6feb507.tar.xz |
[chore] add nometrics build tagging to metrics API endpoint (#3331)
* add nometrics API endpoint code, to ensure prometheus NEVER compiled in unless wanted
* whoops, fix build tagging
Diffstat (limited to 'internal/api/metrics/metrics.go')
-rw-r--r-- | internal/api/metrics/metrics.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/metrics/metrics.go b/internal/api/metrics/metrics.go index af774d5e8..bbca861ef 100644 --- a/internal/api/metrics/metrics.go +++ b/internal/api/metrics/metrics.go @@ -15,6 +15,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. +//go:build !nometrics + package metrics import ( |