Skip to content

Commit

Permalink
Solve comments about function visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoolioh committed May 30, 2024
1 parent 19ca4c1 commit af7a912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trace-utils/src/trace_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub struct RootSpanTags<'a> {
pub runtime_id: &'a str,
}

pub fn construct_trace_chunk(trace: Vec<pb::Span>) -> pb::TraceChunk {
pub(crate) fn construct_trace_chunk(trace: Vec<pb::Span>) -> pb::TraceChunk {
pb::TraceChunk {
priority: normalizer::SamplerPriority::None as i32,
origin: "".to_string(),
Expand All @@ -59,7 +59,7 @@ pub fn construct_trace_chunk(trace: Vec<pb::Span>) -> pb::TraceChunk {
}
}

pub fn construct_tracer_payload(
pub(crate) fn construct_tracer_payload(
chunks: Vec<pb::TraceChunk>,
tracer_tags: &TracerHeaderTags,
root_span_tags: RootSpanTags,
Expand Down Expand Up @@ -211,7 +211,7 @@ pub fn set_serverless_root_span_tags(
}
}

pub fn update_tracer_top_level(span: &mut pb::Span) {
fn update_tracer_top_level(span: &mut pb::Span) {
if span.metrics.contains_key(TRACER_TOP_LEVEL_KEY) {
span.metrics.insert(TOP_LEVEL_KEY.to_string(), 1.0);
}
Expand Down

0 comments on commit af7a912

Please sign in to comment.