.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_CLIENT_POOL_SET_APM_CALLBACKS" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX bool mongoc_client_pool_set_apm_callbacks (mongoc_client_pool_t *pool, mongoc_apm_callbacks_t *callbacks, void *context); .EE .UNINDENT .UNINDENT .sp Register a set of callbacks to receive Application Performance Monitoring events. .sp The \fBcallbacks\fP are copied by the pool and may be destroyed at any time after. If a \fBcontext\fP is passed, it is the application\(aqs responsibility to ensure \fBcontext\fP remains valid for the lifetime of the pool. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBpool\fP: A \fI\%mongoc_client_pool_t\fP\&. .IP \(bu 2 \fBcallbacks\fP: A \fI\%mongoc_apm_callbacks_t\fP\&. .IP \(bu 2 \fBcontext\fP: Optional pointer to include with each event notification. .UNINDENT .SH RETURNS .sp Returns true on success. If any arguments are invalid, returns false and logs an error. .SH THREAD SAFETY .sp This function can only be called once on a pool, and must be called before the first call to \fI\%mongoc_client_pool_pop()\fP\&. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%Introduction to Application Performance Monitoring\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .