fix: harden typed metrics review findings
This commit is contained in:
1 parent
996a5461de
commit
b7face0e94
30 files changed
+722
-382
No files matched your search
@@ -183,6 +183,11 @@ impl TraceContext {
|
||||
&self.traceparent
|
||||
}
|
||||
|
||||
/// Whether this context was selected for recording by the upstream/local sampler.
|
||||
pub fn is_sampled(&self) -> bool {
|
||||
self.traceparent.ends_with("-01")
|
||||
}
|
||||
|
||||
pub fn tracestate_within_budget(value: &str) -> bool {
|
||||
header_list_within_budget(
|
||||
value,
|
||||
|
||||
Reference in new issue
Block a user