def METHOD_NAME(
    es_client: ElasticSearchClient,
    metric,
    index_name: str,
):
    try:
        es_client.store_document(
            index=index_name,
            body=dataclasses.asdict(metric),
            inject_metadata=False,
        )
    except Exception:
        import traceback
        logger.warning(traceback.format_exc())
        logger.warning('could not send route request to elastic search')