opentelemetry-collector/otelcol
Alex Boten 0daa81380d
[service] add logger provider configuration support (#10544)
This allows us to use the otel-go/config package to support configuring
external destinations for logs. I'm putting this in draft to gather
community feedback on whether this is a desirable feature for the
collector.

I used the following configuration with this PR to send data to an OTLP
backend:

```yaml
telemetry:
   logs:
     processors:
       - batch:
           exporter:
             otlp:
               protocol: http/protobuf
               endpoint: https://api.honeycomb.io:443
               headers:
                 "x-honeycomb-team": "${env:HONEYCOMB_API_KEY}"
```

This allowed me to see logs in my backend:

![Screenshot 2024-07-04 at 1 49
04 PM](https://github.com/open-telemetry/opentelemetry-collector/assets/223565/bba7c82a-e9f9-4b15-933a-6bb3e7a66bb8)

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-10-23 10:13:58 -07:00
..
internal [exporter/logging] Remove logging exporter (#11037) 2024-10-03 11:47:39 +02:00
otelcoltest [service] add logger provider configuration support (#10544) 2024-10-23 10:13:58 -07:00
testdata Deprecate service::telemetry::metrics::address (#11205) 2024-09-25 13:34:53 -07:00
Makefile [otelcol] split into its own module (#8443) 2023-09-18 09:36:10 -07:00
buffered_core.go [otelcol] Add a custom zapcore.Core for confmap logging (#10056) 2024-05-10 10:22:33 +02:00
buffered_core_test.go [chore]: enable require-error rule from testifylint (#11199) 2024-09-18 15:02:22 -07:00
collector.go fix(deps): update module github.com/golangci/golangci-lint to v1.61.0 (#10935) 2024-10-12 16:13:55 -07:00
collector_core.go [otelcol] Add a custom zapcore.Core for confmap logging (#10056) 2024-05-10 10:22:33 +02:00
collector_core_test.go [chore]: enable len and empty rules from testifylint (#11021) 2024-09-09 09:57:58 -07:00
collector_test.go Fix typos (#11348) 2024-10-09 15:43:52 -07:00
collector_windows.go otelcol: fix windows event log core placement (#11051) 2024-09-16 11:36:51 +02:00
collector_windows_service_test.go otelcol: fix windows event log core placement (#11051) 2024-09-16 11:36:51 +02:00
collector_windows_test.go [otelcol] Remove all default providers/converters (#10436) 2024-06-28 10:33:11 +02:00
command.go [confmap] Remove stable confmap.unifyEnvVarExpansion feature gate (#11007) 2024-08-29 10:41:16 -07:00
command_components.go Deprecate funcs that repeate extension in name (#11413) 2024-10-10 16:10:02 -07:00
command_components_test.go [otelcol] Remove all default providers/converters (#10436) 2024-06-28 10:33:11 +02:00
command_test.go [confmap] Set confmap.unifyEnvVarExpansion feature gate to stable (#10508) 2024-08-07 13:31:17 -07:00
command_validate.go [otelcol] Remove all default providers/converters (#10436) 2024-06-28 10:33:11 +02:00
command_validate_test.go [chore]: use ErrorContains and EqualError (#11295) 2024-09-28 08:06:09 -07:00
config.go [service] remove deprecated types (#11361) 2024-10-04 11:23:00 -07:00
config_test.go [chore] Pass the signal constant instead of the string (#11420) 2024-10-13 13:21:03 -07:00
configprovider.go [otelcol] remove deprecated interface ConfmapProvider (#10934) 2024-08-20 14:37:58 -07:00
configprovider_test.go [otelcol] remove deprecated interface ConfmapProvider (#10934) 2024-08-20 14:37:58 -07:00
factories.go Enhance builder to capture go module for each component type (#10599) 2024-07-16 17:21:42 +02:00
factories_test.go [receivertest] Continue DataType deprecations in receivertest (#11304) 2024-09-30 12:57:31 -07:00
flags.go [featuregate] Deprecate NewFlag in favor of RegisterFlags (#8727) 2023-11-06 12:21:58 -08:00
flags_test.go [chore] use license shortform (#7694) 2023-05-18 13:11:17 -07:00
go.mod [service] add logger provider configuration support (#10544) 2024-10-23 10:13:58 -07:00
go.sum [service] add logger provider configuration support (#10544) 2024-10-23 10:13:58 -07:00
package_test.go [chore] remove unused opencensus code (#9108) 2024-01-30 10:19:42 -08:00
unmarshal_dry_run_test.go [otelcol] Preserve internal representation for components' configurations (#10897) 2024-08-16 12:50:43 -07:00
unmarshaler.go [service/telemetry] Switch to a factory pattern (#10001) 2024-05-21 17:36:18 +02:00
unmarshaler_test.go [service] Remove deprecations and continue renames around DataType (#11303) 2024-09-30 11:31:26 -07:00