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 authored and Mohammad Fahim Abrar committed Mar 17, 2022
1 parent c1299f3 commit 36a25fc
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 36a25fc

Please sign in to comment.