Class OpenTelemetryConfig
Extension methods to make it seamless to install Phobos into OpenTelemetry.Trace.TracerProviderBuilder or OpenTelemetry.Metrics.MeterProviderBuilder instances on the fly.
Inheritance
Inherited Members
Namespace: Phobos.Actor
Assembly: Phobos.Actor.dll
Syntax
public static class OpenTelemetryConfig
Methods
AddPhobosInstrumentation(MeterProviderBuilder)
Subscribes to Phobos' System.Diagnostics.Metrics.Meter.
Declaration
public static MeterProviderBuilder AddPhobosInstrumentation(this MeterProviderBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
OpenTelemetry.Metrics.MeterProviderBuilder | builder | The OTel OpenTelemetry.Metrics.MeterProviderBuilder we're going to attach Phobos metrics to. |
Returns
Type | Description |
---|---|
OpenTelemetry.Metrics.MeterProviderBuilder | The original OpenTelemetry.Metrics.MeterProviderBuilder. This is a fluent interface. |
AddPhobosInstrumentation(TracerProviderBuilder, Boolean)
Subscribes to Phobos' System.Diagnostics.ActivitySource.
Declaration
public static TracerProviderBuilder AddPhobosInstrumentation(this TracerProviderBuilder builder, bool compressShardTraces = false)
Parameters
Type | Name | Description |
---|---|---|
OpenTelemetry.Trace.TracerProviderBuilder | builder | The OTel OpenTelemetry.Trace.TracerProviderBuilder we're going to attach Phobos traces to. |
System.Boolean | compressShardTraces | When set to |
Returns
Type | Description |
---|---|
OpenTelemetry.Trace.TracerProviderBuilder | The original OpenTelemetry.Trace.TracerProviderBuilder. This is a fluent interface. |