MONGOC_APM_COM..._DATABASE_NAME(3)
π MONGOC_APM_COM..._DATABASE_NAME(3) π
okay so bestie, welcome to the libmongoc manual β this page is about mongoc_apm_command_started_get_database_name, and itβs lowkey iconic because it hands you the database name from a command-started APM event. β¨
β¨ SYNOPSIS β¨
const char *
mongoc_apm_command_started_get_database_name (
const mongoc_apm_command_started_t *event);
Returns this event's database name. The data is only valid in the scope of the callback that receives this event; copy it if it will be accessed after the callback returns.
β οΈ read that again, bestie: the data is only valid inside the callback scope. if you need it after the callback returns, copy it β periodt. π
π PARAMETERS π
eventβ Amongoc_apm_command_started_t. thatβs the event youβre pulling the database name from. π«Ά
π RETURNS π
A string that should not be modified or freed. no cap β leave it alone, donβt free it. π
π SEE ALSO π
Introduction to Application Performance Monitoring β yes bestie, go read that for the bigger APM picture. π
πΈ AUTHOR πΈ
MongoDB, Inc
π¦ COPYRIGHT π¦
2009-present, MongoDB, Inc.
β from libmongoc 2.5.6, with the footer date reading Oct 09, 202β¦ π«Άβ¨π
π¦ 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