OpenTelemetryCollectorResource
Handle
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
Configures all compatible resources in the application to forward telemetry to this collector.
withAppForwarding(): OpenTelemetryCollectorResourceReturns
OpenTelemetryCollectorResource Adds a configuration file to the collector resource.
withConfig(configPath: string): OpenTelemetryCollectorResourceParameters
configPath string Returns
OpenTelemetryCollectorResource