OpenTelemetryCollectorResource
Handle
Represents an OpenTelemetry Collector container resource.
type OpenTelemetryCollectorResource interface { IComputeResource Resource ResourceWithArgs ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}Properties
property
GrpcEndpoint EndpointReference getGets the gRPC endpoint for the collector.
GrpcEndpoint() EndpointReferenceproperty
HttpEndpoint EndpointReference getGets the HTTP endpoint for the collector.
HttpEndpoint() EndpointReferenceMethods
Configures all compatible resources in the application to forward telemetry to this collector.
WithAppForwarding() OpenTelemetryCollectorResourceReturns
OpenTelemetryCollectorResource A reference to the resource builder.
Returns a handle; failures surface later via Err().
Adds a configuration file to the collector resource.
WithConfig(configPath string) OpenTelemetryCollectorResourceParameters
configPath stringThe path to the collector configuration file.Returns
OpenTelemetryCollectorResource A reference to the resource builder.
Returns a handle; failures surface later via Err().