Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otel, loki: support dynamic headers() #334

Merged
merged 13 commits into from
Oct 21, 2024
9 changes: 7 additions & 2 deletions modules/grpc/loki/loki-dest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,14 @@ DestinationDriver::init()
}

if (log_template_is_literal_string(worker_partition_key))
log_template_unref(worker_partition_key);
{
log_template_unref(worker_partition_key);
}
else
log_threaded_dest_driver_set_worker_partition_key_ref(&this->super->super.super.super, worker_partition_key);
{
log_threaded_dest_driver_set_worker_partition_key_ref(&this->super->super.super.super, worker_partition_key);
log_threaded_dest_driver_set_flush_on_worker_key_change(&this->super->super.super.super, TRUE);
MrAnno marked this conversation as resolved.
Show resolved Hide resolved
}

return syslogng::grpc::DestDriver::init();
}
Expand Down