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 β€” A mongoc_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

2009-present, MongoDB, Inc.


β€” from libmongoc 2.5.6, with the footer date reading Oct 09, 202… πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from