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
OpenTelemetryOptions(Uri)
Initializes a new instance of the OpenTelemetryOptions class.
public OpenTelemetryOptions(Uri url)
Parameters
Properties
Headers
Gets or sets the headers to include in OpenTelemetry calls.
public IReadOnlyCollection<KeyValuePair<string, string>>? Headers { get; set; }
Property Value
MetricTemporality
Gets or sets the metric temporality.
public OpenTelemetryMetricTemporality MetricTemporality { get; set; }
Property Value
MetricsExportInterval
Gets or sets how frequently in metrics should be exported.
public TimeSpan? MetricsExportInterval { get; set; }
Property Value
Url
Gets or sets the URL for the OpenTelemetry collector.
public Uri? Url { get; set; }
Property Value
UseSecondsForDuration
Gets or sets a value indicating whether duration values will be emitted as float seconds. If false, it is integer milliseconds.
public bool UseSecondsForDuration { get; set; }
Property Value
Methods
Clone()
Create a shallow copy of these options.
public virtual object Clone()
Returns
- object
A shallow copy of these options.