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
grpcEndpointEndpointReferencegetGets the gRPC endpoint for the collector.
property
httpEndpointEndpointReferencegetGets the HTTP endpoint for the collector.
Methods
Configures all compatible resources in the application to forward telemetry to this collector.
withAppForwarding(): OpenTelemetryCollectorResourceReturns
OpenTelemetryCollectorResourceAdds a configuration file to the collector resource.
withConfig(configPath: string): OpenTelemetryCollectorResourceParameters
configPathstringReturns
OpenTelemetryCollectorResource