.\" Man page generated from reStructuredText. . .TH "MONGOC_CLIENT_POOL_SET_APM_CALLBACKS" "3" "Feb 23, 2019" "1.14.0" "MongoDB C Driver" .SH NAME mongoc_client_pool_set_apm_callbacks \- mongoc_client_pool_set_apm_callbacks() . .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 .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C bool mongoc_client_pool_set_apm_callbacks (mongoc_client_pool_t *pool, mongoc_apm_callbacks_t *callbacks, void *context); .ft P .fi .UNINDENT .UNINDENT .sp Register a set of callbacks to receive Application Performance Monitoring events. .sp The callbacks are copied by the pool and may be destroyed at any time after. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBpool\fP: A \fBmongoc_client_pool_t\fP\&. .IP \(bu 2 \fBcallbacks\fP: A \fBmongoc_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 \fBmongoc_client_pool_pop\fP\&. .SH SEE ALSO .sp Introduction to Application Performance Monitoring .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .