Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.Object

Syntax

Summary

OpenTelemetry configuration for observability.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

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 object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

MergeWith

Merges another configuration into this one.

Syntax

Parameters

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

Validate

Validates the OpenTelemetry configuration.

Syntax

Returns

Type: System.Collections.Generic.IEnumerable<string> Validation errors.