Skip to main content

Metrics

MagicOnion server supports metrics related to StreamingHub using System.Diagnostics.Metrics.

Meter: MagicOnion.Server

MetricUnitTags
magiconion.server.streaminghub.connections{connection}rpc.system, rpc.service
magiconion.server.streaminghub.method_durationmsrpc.system, rpc.service, rpc.method
magiconion.server.streaminghub.method_completed{request}rpc.system, rpc.service, rpc.method, magiconion.streaminghub.is_error
magiconion.server.streaminghub.exceptions{exception}rpc.system, rpc.service, rpc.method, error.type

Tags

Tag nameValue
rpc.systemmagiconion
rpc.serviceStreamingHub interface name (e.g. IGreeterService)
rpc.methodStreamingHub method name (e.g. HelloAsync)
magiconion.streaminghub.is_errorWhether a StreamingHub method call succeeded or failed. (e.g. true or false)
error.typeThrown exception type (e.g. System.InvalidOperationException)