Skip to content

Commit 31946bf

Browse files
committed
avoid using all the transport implicitly
1 parent 8ef9b48 commit 31946bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/audit/auditor.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,11 @@ func (a *Auditor) addMetadata(event *AuditEvent, duration time.Duration, rw *res
389389
event.Metadata.Extra[MetadataExtraKeyDuration] = duration.Milliseconds()
390390

391391
// Add transport information
392-
event.Metadata.Extra[MetadataExtraKeyTransport] = a.transportType
392+
if a.isSSETransport() {
393+
event.Metadata.Extra[MetadataExtraKeyTransport] = "sse"
394+
} else {
395+
event.Metadata.Extra[MetadataExtraKeyTransport] = "http"
396+
}
393397

394398
// Add response size if available
395399
if rw.body != nil {

0 commit comments

Comments
 (0)