Class SshTelemetry
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
The names SshSharp publishes diagnostics under. Subscribe to SourceName for traces (ActivitySource) and
metrics (Meter), for example with OpenTelemetry: .AddSource(SshTelemetry.SourceName) and .AddMeter(SshTelemetry.SourceName).
Nothing is recorded unless something listens, and no secrets (passwords, keys, command text) are ever recorded.
public static class SshTelemetry
- Inheritance
-
SshTelemetry
- Inherited Members
Remarks
Activities: SshSharp.Connect (a client span; tags network.protocol.name, network.protocol.version,
network.transport, server.port, ssh.kex, ssh.kex.post_quantum, ssh.cipher, ssh.host_key.type, and
error.type on failure), SshSharp.Authenticate inside it (ssh.auth.method, ssh.auth.attempts,
error.type), SshSharp.Command (ssh.command.exit_status, error.type), and the SFTP transfers
SshSharp.Sftp.Upload and SshSharp.Sftp.Download (ssh.sftp.bytes, error.type) and
SshSharp.Sftp.UploadDirectory and SshSharp.Sftp.DownloadDirectory (also ssh.sftp.files and
ssh.sftp.directories), and the SCP transfers SshSharp.Scp.Upload and SshSharp.Scp.Download (ssh.scp.bytes,
error.type) and SshSharp.Scp.UploadDirectory and SshSharp.Scp.DownloadDirectory (also ssh.scp.files and
ssh.scp.directories). Instruments: sshsharp.connections, sshsharp.connect.duration (s; successful and failed
connects, the failed ones tagged error.type), sshsharp.bytes.sent, sshsharp.bytes.received,
sshsharp.key_exchanges, sshsharp.channels, sshsharp.commands (tagged result and, for errors,
error.type), sshsharp.sftp.bytes (By, tagged ssh.sftp.direction), sshsharp.scp.bytes (By, tagged
ssh.scp.direction), sshsharp.forwarding.connections (tagged
ssh.forwarding.type and result), sshsharp.forwarding.active (tagged ssh.forwarding.type) and
sshsharp.keep_alive.round_trip_time (s); SshSharp.Extensions.DependencyInjection adds
sshsharp.connection_provider.reconnects under the same meter name. No host names, user names or paths are recorded.
Fields
- SourceName
The name of both the ActivitySource and the Meter.