Table of Contents

Class OpenTelemetryOptions

Namespace
Temporalio.Runtime
Assembly
Temporalio.dll

OpenTelemetry tracing/metric collector options. Url is required.

public class OpenTelemetryOptions : ICloneable
Inheritance
OpenTelemetryOptions
Implements
Inherited Members

Constructors

OpenTelemetryOptions()

Initializes a new instance of the OpenTelemetryOptions class.

public OpenTelemetryOptions()

OpenTelemetryOptions(string)

Initializes a new instance of the OpenTelemetryOptions class.

public OpenTelemetryOptions(string url)

Parameters

url string

Url.

OpenTelemetryOptions(Uri)

Initializes a new instance of the OpenTelemetryOptions class.

public OpenTelemetryOptions(Uri url)

Parameters

url Uri

Url.

Properties

Headers

Gets or sets the headers to include in OpenTelemetry calls.

public IReadOnlyCollection<KeyValuePair<string, string>>? Headers { get; set; }

Property Value

IReadOnlyCollection<KeyValuePair<string, string>>

MetricTemporality

Gets or sets the metric temporality.

public OpenTelemetryMetricTemporality MetricTemporality { get; set; }

Property Value

OpenTelemetryMetricTemporality

MetricsExportInterval

Gets or sets how frequently in metrics should be exported.

public TimeSpan? MetricsExportInterval { get; set; }

Property Value

TimeSpan?

Url

Gets or sets the URL for the OpenTelemetry collector.

public Uri? Url { get; set; }

Property Value

Uri

Methods

Clone()

Create a shallow copy of these options.

public virtual object Clone()

Returns

object

A shallow copy of these options.