feat(backend): added support for new version of ResourceTiming
This commit is contained in:
parent
7156fa0fc4
commit
9f71d1a6b3
1 changed files with 13 additions and 0 deletions
|
|
@ -30,6 +30,19 @@ func transformDeprecated(msg Message) Message {
|
|||
Payload: m.Payload,
|
||||
URL: "",
|
||||
}
|
||||
case *ResourceTimingDeprecated:
|
||||
return &ResourceTiming{
|
||||
Timestamp: m.Timestamp,
|
||||
Duration: m.Duration,
|
||||
TTFB: m.TTFB,
|
||||
HeaderSize: m.HeaderSize,
|
||||
EncodedBodySize: m.EncodedBodySize,
|
||||
DecodedBodySize: m.DecodedBodySize,
|
||||
URL: m.URL,
|
||||
Initiator: m.Initiator,
|
||||
TransferredSize: 0,
|
||||
Cached: false,
|
||||
}
|
||||
}
|
||||
return msg
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue