From e5c550d2de7e1458f7f1ab70699885500a6103bb Mon Sep 17 00:00:00 2001 From: saimedhi Date: Mon, 18 Mar 2024 15:34:48 -0700 Subject: [PATCH] Introduced metrics to opensearch-py client Signed-off-by: saimedhi --- opensearchpy/metrics.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/opensearchpy/metrics.py b/opensearchpy/metrics.py index d7dfcd70..9f87a144 100644 --- a/opensearchpy/metrics.py +++ b/opensearchpy/metrics.py @@ -1,3 +1,12 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. +# +# Modifications Copyright OpenSearch Contributors. See +# GitHub history for details. + import time from abc import ABC, abstractmethod @@ -53,4 +62,4 @@ def request_end(self) -> None: def _on_request_end(self) -> None: self._end_time = time.perf_counter() - self._service_time = self._end_time - self._start_time \ No newline at end of file + self._service_time = self._end_time - self._start_time