def track_feature_evaluation_influxdb(
    environment_id: int, feature_evaluations: dict[str, int]
) -> None:
    """
    Sends Feature analytics event data to InfluxDB

    :param environment_id: (int) the id of the environment the feature is being evaluated within
    :param feature_evaluations: (dict) A collection of key id / evaluation counts
    """
    influxdb = InfluxDBWrapper("feature_evaluation")  # type: ignore[no-untyped-call]

    for feature_name, evaluation_count in feature_evaluations.items():
        tags: dict[str, str | int] = {
            "feature_id": feature_name,
            "environment_id": environment_id,
        }
        influxdb.add_data_point("request_count", evaluation_count, tags=tags)

    influxdb.write()

    Sends Feature analytics event data to InfluxDB

    :param environment_id: (int) the id of the environment the feature is being evaluated within
    :param feature_evaluations: (dict) A collection of key id / evaluation counts
    
api/app_analytics/track.py