Back to Mailkit

MailKit Telemetry Documentation

Telemetry.md

4.15.136.3 KB
Original Source

MailKit Telemetry Documentation

Socket Metrics

Metric: mailkit.net.socket.connect.count

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.socket.connect.countCounter{attempt}The number of times a socket attempted to connect to a remote host.
AttributeTypeDescriptionExamplesPresence
network.peer.addressstringPeer IP address of the socket connection.142.251.167.109Always
server.addressstringThe host name that the socket is connecting to.smtp.gmail.comAlways
server.portintThe port that the socket is connecting to.465Always
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.

This metric tracks the number of times a socket attempted to connect to a remote host.

error.type has the following values:

ValueDescription
cancelledThe operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.

Available starting in: MailKit v4.7.0

Metric: mailkit.net.socket.connect.duration

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.socket.connect.durationHistogrammsThe number of milliseconds taken for a socket to connect to a remote host.
AttributeTypeDescriptionExamplesPresence
network.peer.addressstringPeer IP address of the socket connection.142.251.167.109Always
server.addressstringThe host name that the socket is connecting to.smtp.gmail.comAlways
server.portintThe port that the socket is connecting to.465Always
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.

This metric measures the time it takes to connect a socket to a remote host.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.

Available starting in: MailKit v4.7.0

SmtpClient Metrics

Metric: mailkit.net.smtp.client.connection.duration

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.smtp.client.connection.durationHistogramsThe duration of successfully established connections to an SMTP server.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.smtp.gmail.comAlways
server.portintThe port that the client is connected to.25, 465, 587Always
url.schemestringThe URL scheme of the protocol used.smtp or smtpsAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, send, ...Always

This metric tracks the connection duration of each SmtpClient connection and records any error details if the connection was terminated involuntarily.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

Metric: mailkit.net.smtp.client.operation.count

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.smtp.client.operation.countCounter{operation}The number of times a client performed an operation on an SMTP server.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.smtp.gmail.comAlways
server.portintThe port that the client is connected to.25, 465, 587Always
url.schemestringThe URL scheme of the protocol used.smtp or smtpsAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, send, ...Always

This metric tracks the number of times an SmtpClient has performed an operation on an SMTP server.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

Metric: mailkit.net.smtp.client.operation.duration

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.smtp.client.operation.durationHistogrammsThe amount of time it takes for the SMTP server to perform an operation.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.smtp.gmail.comAlways
server.portintThe port that the client is connected to.25, 465, 587Always
url.schemestringThe URL scheme of the protocol used.smtp or smtpsAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, send, ...Always

This metric tracks the amount of time it takes an SMTP server to perform an operation.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

Pop3Client Metrics

Metric: mailkit.net.pop3.client.connection.duration

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.pop3.client.connection.durationHistogramsThe duration of successfully established connections to a POP3 server.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.pop.gmail.comAlways
server.portintThe port that the client is connected to.110, 995Always
url.schemestringThe URL scheme of the protocol used.pop3 or pop3sAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, ...Always

This metric tracks the connection duration of each Pop3Client connection and records any error details if the connection was terminated involuntarily.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

Metric: mailkit.net.pop3.client.operation.count

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.pop3.client.operation.countCounter{operation}The number of times a client performed an operation on a POP3 server.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.pop.gmail.comAlways
server.portintThe port that the client is connected to.110, 995Always
url.schemestringThe URL scheme of the protocol used.pop3 or pop3sAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, ...Always

This metric tracks the number of times an Pop3Client has performed an operation on a POP3 server.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

Metric: mailkit.net.pop3.client.operation.duration

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.pop3.client.operation.durationHistogrammsThe amount of time it takes for the POP3 server to perform an operation.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.pop.gmail.comAlways
server.portintThe port that the client is connected to.110, 995Always
url.schemestringThe URL scheme of the protocol used.pop3 or pop3sAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, ...Always

This metric tracks the amount of time it takes a POP3 server to perform an operation.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

ImapClient Metrics

Metric: mailkit.net.imap.client.connection.duration

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.imap.client.connection.durationHistogramsThe duration of successfully established connections to an IMAP server.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.imap.gmail.comAlways
server.portintThe port that the client is connected to.143, 993Always
url.schemestringThe URL scheme of the protocol used.imap or imapsAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, ...Always

This metric tracks the connection duration of each ImapClient connection and records any error details if the connection was terminated involuntarily.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

Metric: mailkit.net.imap.client.operation.count

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.imap.client.operation.countCounter{operation}The number of times a client performed an operation on an IMAP server.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.imap.gmail.comAlways
server.portintThe port that the client is connected to.143, 993Always
url.schemestringThe URL scheme of the protocol used.imap or imapsAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, ...Always

This metric tracks the number of times an ImapClient has performed an operation on an IMAP server.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0

Metric: mailkit.net.imap.client.operation.duration

Status: Experimental

NameInstrument TypeUnitDescription
mailkit.net.imap.client.operation.durationHistogrammsThe amount of time it takes for the IMAP server to perform an operation.
AttributeTypeDescriptionExamplesPresence
server.addressstringThe host name that the client is connected to.imap.gmail.comAlways
server.portintThe port that the client is connected to.143, 993Always
url.schemestringThe URL scheme of the protocol used.imap or imapsAlways
error.typestringThe type of error encountered.host_not_found, host_unreachable, ...If an error occurred.
network.operationstringThe name of the operation.connect, authenticate, ...Always

This metric tracks the amount of time it takes an IMAP server to perform an operation.

error.type has the following values:

ValueDescription
cancelledAn operation was cancelled.
host_not_foundNo such host is known. The name is not an official host name or alias.
host_unreachableThere is no network route to the specified host.
network_unreachableNo route to the remote host exists.
connection_abortedThe connection was aborted by .NET or the underlying socket provider.
connection_refusedThe remote host is actively refusing a connection.
connection_resetThe connection was reset by the remote peer.
timed_outThe connection attempt timed out, or the connected host has failed to respond.
too_many_open_socketsThere are too many open sockets in the underlying socket provider.
secure_connection_errorAn SSL or TLS connection could not be negotiated.
protocol_errorThe connection was terminated due to an incomplete or invalid response from the server.

Available starting in: MailKit v4.7.0