Improved tracing (part 3)

This commit is contained in:
mdecimus
2024-07-26 19:44:01 +02:00
parent 52cb48353e
commit 1e76792d03
100 changed files with 2892 additions and 2153 deletions

View File

@@ -34,7 +34,7 @@ impl TlsaVerify for Tlsa {
} else {
trc::event!(
Dane(DaneEvent::NoCertificatesFound),
SessionId = session_id,
SpanId = session_id,
Hostname = hostname.to_string(),
);
@@ -53,7 +53,7 @@ impl TlsaVerify for Tlsa {
Err(err) => {
trc::event!(
Dane(DaneEvent::CertificateParseError),
SessionId = session_id,
SpanId = session_id,
Hostname = hostname.to_string(),
Reason = err.to_string(),
);
@@ -96,7 +96,7 @@ impl TlsaVerify for Tlsa {
if hash == record.data {
trc::event!(
Dane(DaneEvent::TlsaRecordMatch),
SessionId = session_id,
SpanId = session_id,
Hostname = hostname.to_string(),
Type = if is_end_entity {
"end-entity"
@@ -130,7 +130,7 @@ impl TlsaVerify for Tlsa {
{
trc::event!(
Dane(DaneEvent::AuthenticationSuccess),
SessionId = session_id,
SpanId = session_id,
Hostname = hostname.to_string(),
);
@@ -138,7 +138,7 @@ impl TlsaVerify for Tlsa {
} else {
trc::event!(
Dane(DaneEvent::AuthenticationFailure),
SessionId = session_id,
SpanId = session_id,
Hostname = hostname.to_string(),
);