Skip to content

Commit

Permalink
add cli version to ingestion headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hrichert committed Nov 13, 2024
1 parent 470c858 commit be77247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata-ingestion/src/datahub/emitter/rest_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
}
)
Expand Down

0 comments on commit be77247

Please sign in to comment.