Table of Contents

Class OpenShellTelemetry

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

Names of the SDK's diagnostics sources. Nothing is recorded until a listener subscribes, so the instrumentation costs nothing by default. With OpenTelemetry, call AddSource(OpenShellTelemetry.ActivitySourceName) on the tracer provider and AddMeter(OpenShellTelemetry.MeterName) on the meter provider.

public static class OpenShellTelemetry
Inheritance
OpenShellTelemetry
Inherited Members

Remarks

Spans and metrics follow the OpenTelemetry gRPC client conventions: span name {service}/{method}, kind client, and the attributes rpc.system, rpc.service, rpc.method and rpc.grpc.status_code. The histogram rpc.client.duration is recorded in seconds. Request and response payloads, metadata, and credentials are never recorded.

Fields

ActivitySourceName

The name of the ActivitySource that emits one client span per RPC.

public const string ActivitySourceName = "OpenShell.Sdk"

Field Value

string

MeterName

The name of the Meter that emits RPC client metrics.

public const string MeterName = "OpenShell.Sdk"

Field Value

string