libdd_profiling/internal/
endpoints.rs1use super::*;
5
6pub struct Endpoints {
7 pub endpoint_label: StringId,
8 pub local_root_span_id_label: StringId,
9 pub mappings: FxIndexMap<u64, StringId>,
10 pub stats: ProfiledEndpointsStats,
11}
12
13impl Endpoints {
14 pub fn new() -> Self {
15 Self {
16 mappings: Default::default(),
17 local_root_span_id_label: Default::default(),
18 endpoint_label: Default::default(),
19 stats: Default::default(),
20 }
21 }
22}
23
24impl Default for Endpoints {
25 fn default() -> Self {
26 Self::new()
27 }
28}