Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithConfig

Method
📦 CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector v13.6.1
func (OpenTelemetryCollectorResource) WithConfig(configPath string) OpenTelemetryCollectorResource

Signature

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().

Applies to

This method applies to the following types: