<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:01 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-2370] Command monitoring and OP_MSG document sequences</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2370</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;MongoDB 2.6 write commands have arrays called &quot;documents&quot;, &quot;updates&quot;, and &quot;deletes&quot; which contain the array of operations. These are absent from the command body with OP_MSG, and they&apos;re added as document sequences instead.&lt;/p&gt;

&lt;p&gt;&lt;del&gt;Introduce a new function mongoc_apm_command_started_get_document_sequences which returns these documents no matter what format of write command was sent to the server. The return value will be NULL if the command is not insert, update, or delete. Converse for command-succeeded events.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;In libmongoc 1.9, when we send an OP_MSG with a document sequence to the server, simulate a command body that includes the document sequence as a BSON array in order to preserve the same API as OP_QUERY write commands.&lt;/p&gt;</description>
                <environment></environment>
        <key id="458327">CDRIVER-2370</key>
            <summary>Command monitoring and OP_MSG document sequences</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Nov 2017 14:49:57 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:19 +0000</updated>
                            <resolved>Mon, 4 Dec 2017 15:08:30 +0000</resolved>
                                    <version>1.9.0</version>
                                    <fixVersion>1.9.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1742803" author="xgen-internal-githook" created="Tue, 5 Dec 2017 14:31:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2370&quot; title=&quot;Command monitoring and OP_MSG document sequences&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2370&quot;&gt;&lt;del&gt;CDRIVER-2370&lt;/del&gt;&lt;/a&gt; fix forward decl for C99&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/0dc8fb1aca4194df67afd431c55d438f9ecef56c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/0dc8fb1aca4194df67afd431c55d438f9ecef56c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1742387" author="xgen-internal-githook" created="Tue, 5 Dec 2017 00:16:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2370&quot; title=&quot;Command monitoring and OP_MSG document sequences&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2370&quot;&gt;&lt;del&gt;CDRIVER-2370&lt;/del&gt;&lt;/a&gt; command monitoring for OP_MSG&lt;/p&gt;

&lt;p&gt;New design: take the document sequence from an OP_MSG insert, update, or&lt;br/&gt;
delete and append it to a synthesized command document for monitoring.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/d2b1589423ab6f687e1a3b234d85c37052495685&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/d2b1589423ab6f687e1a3b234d85c37052495685&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1742386" author="xgen-internal-githook" created="Tue, 5 Dec 2017 00:16:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2370&quot; title=&quot;Command monitoring and OP_MSG document sequences&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2370&quot;&gt;&lt;del&gt;CDRIVER-2370&lt;/del&gt;&lt;/a&gt; monitor OP_MSG document sequences&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 51c7384&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/1c669926ddafe44443ea6e04080fa2e99c80893d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/1c669926ddafe44443ea6e04080fa2e99c80893d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1742385" author="xgen-internal-githook" created="Tue, 5 Dec 2017 00:16:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2370&quot; title=&quot;Command monitoring and OP_MSG document sequences&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2370&quot;&gt;&lt;del&gt;CDRIVER-2370&lt;/del&gt;&lt;/a&gt; fix forward decl&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 34165fb&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b3e13101e0497d98d7d281bc7117dbd459726308&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b3e13101e0497d98d7d281bc7117dbd459726308&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1733675" author="jesse" created="Thu, 23 Nov 2017 14:32:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=derick&quot; class=&quot;user-hover&quot; rel=&quot;derick&quot;&gt;derick&lt;/a&gt; the outcome of the spec debate is that we&apos;ll maintain the pre-3.6 behavior. Documents that are actually kept separate in OP_MSG document sequences for &quot;insert&quot;, &quot;update&quot;, and &quot;delete&quot; commands will be included in the command document published with mongoc_apm_command_started_t. This should be implemented before 1.9.0, and PHPC won&apos;t need to make any changes to its Command Monitoring tests.&lt;/p&gt;</comment>
                            <comment id="1730900" author="jesse" created="Mon, 20 Nov 2017 20:32:29 +0000"  >&lt;p&gt;Reopening while a spec debate is resolved. And rename the simulated reply fields to cursor.firstBatch and cursor.nextBatch.&lt;/p&gt;</comment>
                            <comment id="1730883" author="xgen-internal-githook" created="Mon, 20 Nov 2017 20:17:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2370&quot; title=&quot;Command monitoring and OP_MSG document sequences&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2370&quot;&gt;&lt;del&gt;CDRIVER-2370&lt;/del&gt;&lt;/a&gt; fix forward decl&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/34165fbbfd93a45646b60f74301002713b888351&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/34165fbbfd93a45646b60f74301002713b888351&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1730265" author="xgen-internal-githook" created="Mon, 20 Nov 2017 14:40:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2370&quot; title=&quot;Command monitoring and OP_MSG document sequences&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2370&quot;&gt;&lt;del&gt;CDRIVER-2370&lt;/del&gt;&lt;/a&gt; monitor OP_MSG document sequences&lt;/p&gt;

&lt;p&gt;Update Command Monitoring (also known as APM) to expose the document&lt;br/&gt;
sequence sent with an OP_MSG insert, update, or delete. Simulate a&lt;br/&gt;
document sequence if the wire protocol uses OP_QUERY commands instead&lt;br/&gt;
of OP_MSG.&lt;/p&gt;

&lt;p&gt;In MongoDB 3.8 there will be document sequences in the OP_MSG reply to&lt;br/&gt;
&quot;find&quot;, &quot;aggregate&quot;, etc. Anticipate that wire protocol by simulating&lt;br/&gt;
a document sequence with command replies.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/51c7384fa41642623930daabbbb2a4fbb09471b2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/51c7384fa41642623930daabbbb2a4fbb09471b2&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="458326">PHPC-1038</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htbnzb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>