MONGOC_APM_CO...ED_GET_CONTEXT(3)
π MONGOC_APM_CO...ED_GET_CONTEXT(3) π
okay bestie, so this is one of those pages from libmongoc (the MongoDB C driver, if you're new here β hi, welcome, you're gonna do great π) and it's lowkey tiny but it's also kind of a vibe. The function we're talking about is mongoc_apm_command_failed_get_context(), and the whole entire job of this icon is one thing: hand you back the context pointer you stuck onto your APM callbacks. That's it. That's the whole plot. π«Ά
Think of it like a little name tag π·οΈ β you gave the driver a pointer when you registered your callbacks, and when a command fails, this function gives it right back to you so you know which of your own lil objects you're dealing with. main character energy, honestly.
β¨ SYNOPSIS β¨
like, here's the whole thing, and yes it's giving "short and sweet":
void *
mongoc_apm_command_failed_get_context (
const mongoc_apm_command_failed_t *event);
Returns this event's context. periodt. π
πΈ PARAMETERS πΈ
eventβ Amongoc_apm_command_failed_t. that's it, that's the parameter. it's the event you got handed, and you're asking it "hey bestie, what context did I give you?" π
π¦ RETURNS π¦
The pointer passed with mongoc_client_set_apm_callbacks() or mongoc_client_pool_set_apm_callbacks().
no cap, that's the exact pointer you handed over β same one, no copies, no surprises, no glow-ups in between. it's your pointer, coming back home to you πβ¨
SEE ALSO: Introduction to Application Performance Monitoring β go read it if you want the full lore, iykyk π
π§ AUTHOR π§
MongoDB, Inc β the icons themselves ππ₯
π COPYRIGHT π
2009-present, MongoDB, Inc.
aaaand that's the page!! short king behavior but every single detail is there, fr fr. take care of that context pointer bestie, and remember: you passed it in, so you know what it is ππ
β signed, your fave, on libmongoc 2.5.6, dated Oct 09, 2026 πβπ
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms