<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:26: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>[DRIVERS-2613] Logging if connection establishment exceeds a given threshold</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-2613</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;Something similar was introduced for the MongoDB Server with &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64964&quot; title=&quot;Measure egress connection creation time from connection pools&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64964&quot;&gt;&lt;del&gt;SERVER-64964&lt;/del&gt;&lt;/a&gt;, however this change was limited to only the server&apos;s components. Drivers could also introduce a similar feature to capture and display information when connection establishment exceeds a set threshold.&lt;/p&gt;

&lt;p&gt;For example, the server introduced &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b7352ed6223fea25db11fd7f956f4fcf9a018f42/src/mongo/executor/network_interface_tl.idl#L49&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;slowConnectionThresholdMillis&lt;/tt&gt;&lt;/a&gt; which defaults to 100ms, and when exceeded will &lt;a href=&quot;https://github.com/mongodb/mongo/commit/f387fa8cc75b9129fb1d57d302ed424349990d5e#diff-ca3e51356f79942302a80c0afa8699fd75e86c57d50cbe1d4100b8a6420562fdR70-R82&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;output a log entry&lt;/a&gt; that contains details about:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;DNS Resolution Time&lt;/li&gt;
	&lt;li&gt;TCP Connection Time&lt;/li&gt;
	&lt;li&gt;TLS Handshake Time&lt;/li&gt;
	&lt;li&gt;Authentication Time&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2322208">DRIVERS-2613</key>
            <summary>Logging if connection establishment exceeds a given threshold</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="alex.bevilacqua@mongodb.com">Alex Bevilacqua</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Apr 2023 13:39:28 +0000</created>
                <updated>Wed, 26 Apr 2023 13:43:44 +0000</updated>
                                                                <component>CMAP</component>
                    <component>Logging</component>
                                        <votes>2</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="5377413" author="JIRAUSER1263309" created="Wed, 26 Apr 2023 13:43:38 +0000"  >&lt;p&gt;Adding connection establishment metrics to our CMAP events and logging events seems like a good idea.&#160; We can attach connection establishment information to `ConnectionReady` events.&lt;/p&gt;

&lt;p&gt;A few open questions:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Which portions of connection establishment can drivers measure and which should they measure?&lt;/li&gt;
	&lt;li&gt;Should this behavior configurable by a flag or should we always attach connection establishment metrics?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5370512" author="jeff.yemin" created="Mon, 24 Apr 2023 14:23:26 +0000"  >&lt;p&gt;Just FYI for some socket API&apos;s (e.g. Java) the driver can&apos;t measure TCP handshake time independent of TLS handshake time, because TLS is abstracted from the calling code behind a common API.&lt;/p&gt;</comment>
                    </comments>
                    <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_10951" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Driver Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10748"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1ob40:</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>