def get_task_id_service_name(service_name):
    """Converts the provided service name to a sanitized name as used in task ids.

    For example: /test/integration/foo => test.integration.foo"""
    return service_name.lstrip("/").replace("/", ".")