Definition
Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.ObjectSyntax
Summary
OpenTelemetry configuration for observability.Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
Enabled
Gets or sets a value indicating whether OpenTelemetry is enabled.Syntax
Property Value
Type:bool
OtlpEndpoint
Gets or sets the OTLP endpoint for exporting telemetry data.Syntax
Property Value
Type:string?
ResourceAttributes
Gets or sets additional resource attributes.Syntax
Property Value
Type:System.Collections.Generic.Dictionary<string, string>
ServiceName
Gets or sets the service name for telemetry data.Syntax
Property Value
Type:string
ServiceVersion
Gets or sets the service version for telemetry data.Syntax
Property Value
Type:string
Methods
Clone
Creates a copy of this configuration.Syntax
Returns
Type:Microsoft.OData.Mcp.Core.Configuration.OpenTelemetryConfiguration
A new instance with the same settings.
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
MergeWith
Merges another configuration into this one.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
other | Microsoft.OData.Mcp.Core.Configuration.OpenTelemetryConfiguration | The configuration to merge. |
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Validate
Validates the OpenTelemetry configuration.Syntax
Returns
Type:System.Collections.Generic.IEnumerable<string>
Validation errors.