Experimentalper-telemetry-type processors and readers to be added to OTel providers. If no hooks for a specific telemetry type are passed - provider will not be set.
OptionalotelResource: ResourceOTel resource to use in providers. If empty - default OTel resource detection will be used.
Sets up OTel providers if hooks for a given telemetry type were passed.
Additionally adds generic OTLP exporters based on following env variables: OTEL_EXPORTER_OTLP_ENDPOINT OTEL_EXPORTER_OTLP_TRACES_ENDPOINT OTEL_EXPORTER_OTLP_METRICS_ENDPOINT OTEL_EXPORTER_OTLP_LOGS_ENDPOINT See https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ for how they are used.
If a provider for a specific telemetry type was already globally set - this function will not override it or register more exporters.
(Experimental, subject to change)