---
name: "mongoc_apm_command_started_get_operation_id"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_apm_command_started_get_operation_id"
---

# mongoc\_apm\_command\_started\_get\_operation\_id(3)

## SYNOPSIS

```
int64_t
mongoc_apm_command_started_get_operation_id (
   const mongoc_apm_command_started_t *event);
```

Returns this event's operation id. This number correlates all the commands in a bulk operation, or all the "find" and "getMore" commands required to stream a large query result.

## PARAMETERS

- •

  **event**: A *mongoc\_apm\_command\_started\_t*.

## RETURNS

The event's operation id.

**SEE ALSO:**

```
Introduction to Application Performance Monitoring
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
