Skip to content

Commit

Permalink
GODRIVER-1896 Ensure ServerID is set on monitoring events
Browse files Browse the repository at this point in the history
  • Loading branch information
Divjot Arora committed Mar 22, 2021
1 parent 58aee42 commit 31673c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/mongo/driver/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,7 @@ func (op Operation) publishStartedEvent(ctx context.Context, info startedInforma
CommandName: info.cmdName,
RequestID: int64(info.requestID),
ConnectionID: info.connID,
ServerID: info.serverID,
}
op.CommandMonitor.Started(ctx, started)
}
Expand All @@ -1501,6 +1502,7 @@ func (op Operation) publishFinishedEvent(ctx context.Context, info finishedInfor
RequestID: int64(info.requestID),
ConnectionID: info.connID,
DurationNanos: durationNanos,
ServerID: info.serverID,
}

if success {
Expand Down

0 comments on commit 31673c0

Please sign in to comment.