Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Nov 29, 2023
1 parent db4e98a commit 7c9523b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/minipipeline/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ type WebObservation struct {
// DNSEngine is the DNS engine that we're using (e.g., "getaddrinfo").
DNSEngine optional.Value[string]

// DNSResolvedAddrs contains the list of DNS-resolved addrs.
DNSResolvedAddrs optional.Value[Set[string]]

// The following fields are optional.Some in these cases:
//
// 1. when you process successful DNS lookup events from OONI measurements;
Expand Down Expand Up @@ -306,6 +309,7 @@ func (c *WebObservationsContainer) ingestDNSLookupSuccesses(evs ...*model.Archiv
DNSLookupFailure: optional.Some(""),
DNSQueryType: optional.Some(ev.QueryType),
DNSEngine: optional.Some(ev.Engine),
DNSResolvedAddrs: optional.Some(addrs),
IPAddress: optional.Some(ipAddr),
IPAddressASN: utilsGeoipxLookupASN(ipAddr),
IPAddressBogon: optional.Some(netxlite.IsBogon(ipAddr)),
Expand Down Expand Up @@ -346,6 +350,7 @@ func (c *WebObservationsContainer) IngestTCPConnectEvents(evs ...*model.Archival
DNSTransactionID: obs.DNSTransactionID,
DNSDomain: obs.DNSDomain,
DNSLookupFailure: obs.DNSLookupFailure,
DNSResolvedAddrs: obs.DNSResolvedAddrs,
IPAddress: obs.IPAddress,
IPAddressASN: obs.IPAddressASN,
IPAddressBogon: obs.IPAddressBogon,
Expand Down

0 comments on commit 7c9523b

Please sign in to comment.