Class OpenTelemetryOptions
OpenTelemetry tracing/metric collector options. Url is required.
Namespace: Temporalio.Runtime
Assembly: Temporalio.dll
Syntax
public class OpenTelemetryOptions : ICloneable
Constructors
OpenTelemetryOptions()
Initializes a new instance of the OpenTelemetryOptions class.
Declaration
public OpenTelemetryOptions()
OpenTelemetryOptions(String)
Initializes a new instance of the OpenTelemetryOptions class.
Declaration
public OpenTelemetryOptions(string url)
Parameters
Type | Name | Description |
---|---|---|
String | url | Url. |
Properties
Headers
Gets or sets the headers to include in OpenTelemetry calls.
Declaration
public IEnumerable<KeyValuePair<string, string>>? Headers { get; set; }
Property Value
Type | Description |
---|---|
Nullable<IEnumerable<KeyValuePair<String, String>>> |
MetricsExportInterval
Gets or sets how frequently in metrics should be exported.
Declaration
public TimeSpan? MetricsExportInterval { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
Url
Gets or sets the URL for the OpenTelemetry collector.
Declaration
public string? Url { get; set; }
Property Value
Type | Description |
---|---|
Nullable<String> |
Methods
Clone()
Create a shallow copy of these options.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
Object | A shallow copy of these options. |