feat: Add entrypoint utils and define EntryPointParams (#211)

* feat: Add entrypoint utils and define EntryPointParams

#time 23m


#time 0m

* fix: Make TraceData mandatory

#time 2m

* fix: Make component_id in EntryPointParams optional

#time 1m
This commit is contained in:
dianacarvalho1
2025-05-20 17:47:25 +01:00
committed by GitHub
parent 7e73061f8e
commit a7841af383
6 changed files with 72 additions and 4 deletions

View File

@@ -194,6 +194,7 @@ pub struct EntryPoint {
pub component_id: ::prost::alloc::string::String,
}
/// Parameters to trace the entrypoint
#[derive(Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EntryPointParams {
@@ -201,8 +202,8 @@ pub struct EntryPointParams {
#[prost(string, tag="1")]
pub entrypoint_id: ::prost::alloc::string::String,
/// \[optional\] The component that uses these entrypoint parameters. Currently used for debugging purposes only.
#[prost(string, tag="2")]
pub component_id: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub component_id: ::core::option::Option<::prost::alloc::string::String>,
/// The strategy and its corresponding data
#[prost(oneof="entry_point_params::TraceData", tags="3")]
pub trace_data: ::core::option::Option<entry_point_params::TraceData>,
@@ -210,6 +211,7 @@ pub struct EntryPointParams {
/// Nested message and enum types in `EntryPointParams`.
pub mod entry_point_params {
/// The strategy and its corresponding data
#[derive(Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TraceData {
@@ -219,6 +221,7 @@ pub mod entry_point_params {
}
}
/// RPC tracing strategy with its data
#[derive(Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RpcTraceData {