Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
8ba96acf
Unverified
Commit
8ba96acf
authored
3 years ago
by
M. Mert Yıldıran
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Don't omit the `Latency` field in `BaseEntryDetails` (#302)
parent
f164e54f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
agent/pkg/api/main.go
+0
-1
agent/pkg/api/main.go
tap/api/api.go
+2
-1
tap/api/api.go
tap/extensions/amqp/main.go
+1
-1
tap/extensions/amqp/main.go
tap/extensions/http/main.go
+1
-1
tap/extensions/http/main.go
tap/extensions/kafka/main.go
+1
-1
tap/extensions/kafka/main.go
with
5 additions
and
5 deletions
+5
-5
agent/pkg/api/main.go
+
0
-
1
View file @
8ba96acf
...
...
@@ -115,7 +115,6 @@ func startReadingChannel(outputItems <-chan *tapApi.OutputChannelItem, extension
if
err
==
nil
{
rules
,
_
:=
models
.
RunValidationRulesState
(
*
harEntry
,
mizuEntry
.
Service
)
baseEntry
.
Rules
=
rules
baseEntry
.
Latency
=
mizuEntry
.
ElapsedTime
}
}
...
...
This diff is collapsed.
Click to expand it.
tap/api/api.go
+
2
-
1
View file @
8ba96acf
...
...
@@ -156,7 +156,7 @@ type BaseEntryDetails struct {
SourcePort
string
`json:"sourcePort,omitempty"`
DestinationPort
string
`json:"destinationPort,omitempty"`
IsOutgoing
bool
`json:"isOutgoing,omitempty"`
Latency
int64
`json:"latency
,omitempty
"`
Latency
int64
`json:"latency"`
Rules
ApplicableRules
`json:"rules,omitempty"`
}
...
...
@@ -190,6 +190,7 @@ func (bed *BaseEntryDetails) UnmarshalData(entry *MizuEntry) error {
bed
.
Timestamp
=
entry
.
Timestamp
bed
.
RequestSenderIp
=
entry
.
RequestSenderIp
bed
.
IsOutgoing
=
entry
.
IsOutgoing
bed
.
Latency
=
entry
.
ElapsedTime
return
nil
}
...
...
This diff is collapsed.
Click to expand it.
tap/extensions/amqp/main.go
+
1
-
1
View file @
8ba96acf
...
...
@@ -312,7 +312,7 @@ func (d dissecting) Summarize(entry *api.MizuEntry) *api.BaseEntryDetails {
SourcePort
:
entry
.
SourcePort
,
DestinationPort
:
entry
.
DestinationPort
,
IsOutgoing
:
entry
.
IsOutgoing
,
Latency
:
0
,
Latency
:
entry
.
ElapsedTime
,
Rules
:
api
.
ApplicableRules
{
Latency
:
0
,
Status
:
false
,
...
...
This diff is collapsed.
Click to expand it.
tap/extensions/http/main.go
+
1
-
1
View file @
8ba96acf
...
...
@@ -223,7 +223,7 @@ func (d dissecting) Summarize(entry *api.MizuEntry) *api.BaseEntryDetails {
SourcePort
:
entry
.
SourcePort
,
DestinationPort
:
entry
.
DestinationPort
,
IsOutgoing
:
entry
.
IsOutgoing
,
Latency
:
0
,
Latency
:
entry
.
ElapsedTime
,
Rules
:
api
.
ApplicableRules
{
Latency
:
0
,
Status
:
false
,
...
...
This diff is collapsed.
Click to expand it.
tap/extensions/kafka/main.go
+
1
-
1
View file @
8ba96acf
...
...
@@ -186,7 +186,7 @@ func (d dissecting) Summarize(entry *api.MizuEntry) *api.BaseEntryDetails {
SourcePort
:
entry
.
SourcePort
,
DestinationPort
:
entry
.
DestinationPort
,
IsOutgoing
:
entry
.
IsOutgoing
,
Latency
:
0
,
Latency
:
entry
.
ElapsedTime
,
Rules
:
api
.
ApplicableRules
{
Latency
:
0
,
Status
:
false
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help