Skip to content
DocsTry Aspire
DocsTry

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

propertygrpcEndpointEndpointReferenceget
Gets the gRPC endpoint for the collector.
propertyhttpEndpointEndpointReferenceget
Gets the HTTP endpoint for the collector.

Methods

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