Skip to content
Docs Try Aspire
Docs Try

OpenTelemetryCollectorResource

Handle
📦 CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector v13.4.0
interface OpenTelemetryCollectorResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
readonly grpcEndpoint: EndpointReference;
readonly httpEndpoint: EndpointReference;
withAppForwarding(): OpenTelemetryCollectorResource;
withConfig(configPath: string): OpenTelemetryCollectorResource;
}

Properties

property grpcEndpoint EndpointReference get
Gets the gRPC endpoint for the collector.
property httpEndpoint EndpointReference get
Gets the HTTP endpoint for the collector.

Methods

method withAppForwarding builder
Configures all compatible resources in the application to forward telemetry to this collector.
withAppForwarding(): OpenTelemetryCollectorResource
OpenTelemetryCollectorResource
method withConfig builder
Adds a configuration file to the collector resource.
withConfig(configPath: string): OpenTelemetryCollectorResource
configPath string
OpenTelemetryCollectorResource