OpenTelemetryCollectorResource

Handle
📦 CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector v13.6.1

Represents an OpenTelemetry Collector container resource.

type OpenTelemetryCollectorResource interface {
IComputeResource
Resource
ResourceWithArgs
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Properties

propertyGrpcEndpointEndpointReferenceget
Gets the gRPC endpoint for the collector.
GrpcEndpoint() EndpointReference
propertyHttpEndpointEndpointReferenceget
Gets the HTTP endpoint for the collector.
HttpEndpoint() EndpointReference

Methods

methodWithAppForwardingbuilder
Configures all compatible resources in the application to forward telemetry to this collector.
WithAppForwarding() OpenTelemetryCollectorResource
OpenTelemetryCollectorResource

A reference to the resource builder.

Returns a handle; failures surface later via Err().

methodWithConfigbuilder
Adds a configuration file to the collector resource.
WithConfig(configPath string) OpenTelemetryCollectorResource
configPathstringThe path to the collector configuration file.
OpenTelemetryCollectorResource

A reference to the resource builder.

Returns a handle; failures surface later via Err().