From be772471254564035a45bfd4b82eb0ccaba71fe6 Mon Sep 17 00:00:00 2001 From: Hendrik Richert Date: Wed, 13 Nov 2024 11:45:33 +0100 Subject: [PATCH] add cli version to ingestion headers --- metadata-ingestion/src/datahub/emitter/rest_emitter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metadata-ingestion/src/datahub/emitter/rest_emitter.py b/metadata-ingestion/src/datahub/emitter/rest_emitter.py index 948060c3c4f44..fbf41e1b10341 100644 --- a/metadata-ingestion/src/datahub/emitter/rest_emitter.py +++ b/metadata-ingestion/src/datahub/emitter/rest_emitter.py @@ -10,6 +10,7 @@ from requests.adapters import HTTPAdapter, Retry from requests.exceptions import HTTPError, RequestException +from datahub import nice_version_name from datahub.cli import config_utils from datahub.cli.cli_utils import ensure_has_system_metadata, fixup_gms_url from datahub.configuration.common import ConfigurationError, OperationalError @@ -91,6 +92,7 @@ def __init__( self._session.headers.update( { "X-RestLi-Protocol-Version": "2.0.0", + "X-Datahub-Cli-Version": nice_version_name(), "Content-Type": "application/json", } )