36 std::string_view
url =
"rerun+http://127.0.0.1:9876/proxy";
45 inline operator LogSink()
const;
57 std::string_view bind_ip =
"0.0.0.0";
59 std::string_view server_memory_limit =
"1GiB";
61 std::vector<std::string_view> cors_allow_origins;
66 std::string_view bind_ip_, uint16_t port_ = 9876,
67 std::string_view server_memory_limit_ =
"1GiB",
69 std::vector<std::string_view> cors_allow_origins_ = {}
73 server_memory_limit(server_memory_limit_),
74 playback_behavior(playback_behavior_),
75 cors_allow_origins(std::move(cors_allow_origins_)) {}
77 inline operator LogSink()
const;
85 inline operator LogSink()
const;
116 inline GrpcSink::operator LogSink()
const {
118 sink.kind = LogSink::Kind::Grpc;
123 inline FileSink::operator LogSink()
const {
125 sink.kind = LogSink::Kind::File;
130 inline GrpcServerSink::operator LogSink()
const {
132 sink.kind = LogSink::Kind::GrpcServer;
133 sink.grpc_server =
this;
138 rr_log_sink to_rr_log_sink(LogSink sink);
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
PlaybackBehavior
What happens when a client connects to a gRPC server.
Definition log_sink.hpp:13
@ OldestFirst
Start by playing back all old data, then send data that arrived during playback.
@ NewestFirst
Prioritize newly arriving messages, then replay history from newest to oldest.
Log sink which writes messages to a file.
Definition log_sink.hpp:81
std::string_view path
Path to the output file.
Definition log_sink.hpp:83
Log sink which hosts a Rerun gRPC server.
Definition log_sink.hpp:56
Log sink which streams messages to an existing Rerun gRPC server.
Definition log_sink.hpp:29
std::string_view url
A Rerun gRPC URL.
Definition log_sink.hpp:36
std::chrono::duration< float > flush_timeout
How long a flush waits for the connection to be established.
Definition log_sink.hpp:43
A sink for log messages.
Definition log_sink.hpp:94
const GrpcServerSink * grpc_server
Borrowed only during RecordingStream::set_sinks.
Definition log_sink.hpp:112