Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Test change #16

Open
wants to merge 1 commit into
base: v0.37
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/sinks/aws_s3/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use uuid::Uuid;
use vector_lib::codecs::encoding::Framer;
use vector_lib::event::Finalizable;
use vector_lib::request_metadata::RequestMetadata;
use vector_lib::event::Value;

use crate::{
codecs::{Encoder, Transformer},
Expand Down Expand Up @@ -58,6 +59,14 @@ impl RequestBuilder<(S3PartitionKey, Vec<Event>)> for S3RequestOptions {
let (partition_key, mut events) = input;
let builder = RequestMetadataBuilder::from_events(&events);

for event in events.iter_mut() {
if let Event::Log(log_event) = event {
if let Value::Object(map) = log_event.value() {
info!(value = format!("{:?}", map));
}
}
}

let finalizers = events.take_finalizers();
let s3_key_prefix = partition_key.key_prefix.clone();

Expand Down
Loading