You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sink.rs
    path of file: ./repos/vector/src/sinks/datadog/logs
    
    the code of the file until where you have to start completion: use std::{collections::VecDeque, fmt::Debug, io, sync::Arc};

use snafu::Snafu;
use vector_lib::{
    internal_event::{ComponentEventsDropped, UNINTENTIONAL},
    lookup::event_path,
};

use super::{config::MAX_PAYLOAD_BYTES, service::LogApiRequest};
use crate::sinks::{
    prelude::*,
    util::{http::HttpJsonBatchSizer, Compressor},
};
#[derive(Default)]
struct EventPartitioner;

impl Partitioner for EventPartitioner {
    type Item = Event;
    type Key = Option<Arc<str>>;

    fn partition(&self, item: &Self::Item) -> Self::Key {
        item.metadata().datadog_api_key()
    }
}

#[derive(Debug)]
pub struct LogSinkBuilder<S> {
    transformer: Transfor
    
fn normalize_event(event: &mut Event) {
    let log = event.as_mut_log();
    let message_path = log
        .message_path()
        .expect("message is required (make sure the \"message\" semantic meaning is set)")
        .clone();
    log.rename_key(&message_path, event_path!("message"));

    if let Some(host_path) = log.host_path().cloned().as_ref() {
        log.rename_key(host_path, event_path!("hostname"));
    }

    let timestamp_path = log
        .timestamp_path()
        .expect("timestamp is required (make sure the \"timestamp\" semantic meaning is set)")
        .clone();
    if let Some(Value::Timestamp(ts)) = log.remove(&timestamp_path) {
        log.insert(
            event_path!("timestamp"),
            Value::Integer(ts.timestamp_millis()),
        );
    }
}