OpenTelemetryCollectorResource.WithConfig
Method
type OpenTelemetryCollectorResource interface { // ... omitted for brevity WithConfig(configPath string) OpenTelemetryCollectorResource}Signature
method
WithConfig builderAdds 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().
Defined on
This method is defined on the following type: