Skip to content

Commit

Permalink
[POA-2516] Introduce errors field in body meta
Browse files Browse the repository at this point in the history
  • Loading branch information
shreys7 committed Dec 10, 2024
1 parent 0af65b8 commit bc063b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/OneOfOne/xxhash v1.2.8
github.com/akitasoftware/akita-ir v0.0.0-20241008173748-ca8e2e3d5db4
github.com/akitasoftware/akita-ir v0.0.0-20241210134130-1db037ecc549 // todo: update this to match the commit on master once observability-ir#16 is merged
github.com/akitasoftware/go-utils v0.0.0-20221207014235-6f4c9079488d
github.com/akitasoftware/objecthash-proto v0.0.0-20211020004800-9990a7ea5dc0
github.com/amplitude/analytics-go v1.0.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ github.com/OneOfOne/xxhash v1.2.8 h1:31czK/TI9sNkxIKfaUfGlU47BAxQ0ztGgd9vPyqimf8
github.com/OneOfOne/xxhash v1.2.8/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q=
github.com/akitasoftware/akita-ir v0.0.0-20241008173748-ca8e2e3d5db4 h1:jbsA7E68G4dkK+ldQKQNPFIaRojFCn+cEB3gEEUSEU4=
github.com/akitasoftware/akita-ir v0.0.0-20241008173748-ca8e2e3d5db4/go.mod h1:WEWPzhZtxlJnov3MxcqSDiZaHHf00vs3aJwCdt3OwzA=
github.com/akitasoftware/akita-ir v0.0.0-20241210134130-1db037ecc549 h1:r5EbkpsLDonkIEQWdUqNwI1FaI0/kThShk0zD0KC08E=
github.com/akitasoftware/akita-ir v0.0.0-20241210134130-1db037ecc549/go.mod h1:WEWPzhZtxlJnov3MxcqSDiZaHHf00vs3aJwCdt3OwzA=
github.com/akitasoftware/go-utils v0.0.0-20221207014235-6f4c9079488d h1:pN1dbNacZ/mvlU1NcJVDxqmKnrDQDTVaN6iKOarfdYM=
github.com/akitasoftware/go-utils v0.0.0-20221207014235-6f4c9079488d/go.mod h1:+IOXf7l/QCAQECJzjJwhTp1sBkRoJ6WciZwJezUwBa4=
github.com/akitasoftware/gopacket v1.1.18-0.20240820200020-7289ae956f70 h1:VnU7QLDBwRujpQoHwShs5yu0Ahv1fSalNJa4UijwlmY=
Expand Down
6 changes: 5 additions & 1 deletion spec_util/ir_hash/generated_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ func HashHTTPBody(node *pb.HTTPBody) []byte {
hash.Write(intHashes[2])
hash.Write(Hash_Unicode(node.OtherType))
}
if node.Errors != 0 {
hash.Write(intHashes[3])
hash.Write(Hash_Int32(int32(node.Errors)))
}
return hash.Sum(nil)
}
func HashHTTPCookie(node *pb.HTTPCookie) []byte {
Expand Down Expand Up @@ -901,4 +905,4 @@ func HashWitness(node *pb.Witness) []byte {
return hash.Sum(nil)
}

var ProtobufFileHashes map[string][]byte = map[string][]byte{"method.proto": []byte{31, 208, 148, 29, 192, 101, 63, 116}, "witness.proto": []byte{42, 213, 185, 25, 124, 226, 76, 187}, "types.proto": []byte{98, 84, 34, 180, 249, 140, 214, 227}, "spec.proto": []byte{13, 101, 129, 126, 232, 252, 1, 146}}
var ProtobufFileHashes map[string][]byte = map[string][]byte{"method.proto": []byte{254, 173, 140, 11, 169, 144, 54, 154}, "witness.proto": []byte{42, 213, 185, 25, 124, 226, 76, 187}, "types.proto": []byte{98, 84, 34, 180, 249, 140, 214, 227}, "spec.proto": []byte{13, 101, 129, 126, 232, 252, 1, 146}}

0 comments on commit bc063b6

Please sign in to comment.