withConfig
Method
interface OpenTelemetryCollectorResource { // ... omitted for brevity withConfig(configPath: string): OpenTelemetryCollectorResource;}Signature
method
withConfigbuilderAdds a configuration file to the collector resource.
withConfig(configPath: string): OpenTelemetryCollectorResourceParameters
configPathstringReturns
OpenTelemetryCollectorResourceApplies to
This method applies to the following types: