From 452ad14ed4b06ea2ffeb6949e2bb3cfb2b4960bc Mon Sep 17 00:00:00 2001 From: Alex Bednarek Date: Thu, 29 Feb 2024 08:49:55 -0800 Subject: [PATCH] Adding get_latest endpoint to sentry monitoring --- api/datalake_api/sentry.py | 0 api/datalake_api/v0.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 api/datalake_api/sentry.py diff --git a/api/datalake_api/sentry.py b/api/datalake_api/sentry.py new file mode 100644 index 0000000..e69de29 diff --git a/api/datalake_api/v0.py b/api/datalake_api/v0.py index 376c49b..87c4aea 100644 --- a/api/datalake_api/v0.py +++ b/api/datalake_api/v0.py @@ -23,7 +23,7 @@ from .fetcher import ArchiveFileFetcher from datalake.common.errors import NoSuchDatalakeFile from datalake.common.metadata import Metadata, InvalidDatalakeMetadata - +import sentry v0 = flask.Blueprint('v0', __name__, url_prefix='/v0') @@ -475,6 +475,7 @@ def _validate_latest_params(params): return validated +@sentry.monitor_performance() @v0.route('/archive/latest//') def latest_get(what, where): '''Retrieve the latest file for a give what and where