Skip to content

Commit

Permalink
feat(proguard): Add some tracing (#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Apr 15, 2024
1 parent 4babbe3 commit b9091e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/symbolicator-proguard/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pub struct ProguardMapper {
}

impl ProguardMapper {
#[tracing::instrument(skip_all, fields(size = byteview.len()))]
pub fn new(byteview: ByteView<'static>) -> Self {
let inner = SelfCell::new(byteview, |data| {
let mapping = proguard::ProguardMapping::new(unsafe { &*data });
Expand Down
6 changes: 6 additions & 0 deletions crates/symbolicator-proguard/src/symbolication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ impl ProguardService {
///
/// "Symbolicate" here means that exceptions and stack
/// frames are remapped using proguard files.
#[tracing::instrument(skip_all,
fields(
exceptions = request.exceptions.len(),
frames = request.stacktraces.iter().map(|st| st.frames.len()).sum::<usize>())
)
]
pub async fn symbolicate_jvm(
&self,
request: SymbolicateJvmStacktraces,
Expand Down

0 comments on commit b9091e2

Please sign in to comment.