aws-otel-collector icon indicating copy to clipboard operation
aws-otel-collector copied to clipboard

Debug exporter is not available in the image yet. This is the replacement for the deprecated logging exporter

Open jennerm opened this issue 1 year ago • 7 comments

The latest version of the otel-collector chart opentelemetry-collector-0.73.1

Now includes the debug exporter in the values.yaml as a replacement for the logging exporter which is now deprecated:

config:
  exporters:
    debug: {}
    # Will be removed in a future release.
    # Use the debug exporter instead.
    logging: {}

However, the latest version of the aws-otel-collector (v0.35.0 at the time of writting) does not include the debug exporter and fails when used with this chart:

Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:
* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [kafka awsemf dynatrace sapm awsxray prometheusremotewrite file signalfx logzio logging otlp prometheus datadog otlphttp loadbalancing awscloudwatchlogs])

Since config.exporters is a map which we add all our other exporter config to, it is not easy to remove the debug key and stop the debug exporter from being added to the configmap.

Since it is clear that the direction of travel is that logging is being replaced, can the debug exporter please be added now?

jennerm avatar Nov 08 '23 12:11 jennerm

Since config.exporters is a map which we add all our other exporter config to, it is not easy to remove the debug key

Someone showed me this in the helm values documentation, which might work around it:

Deleting a default key If you need to delete a key from the default values, you may override the value of the key to be null, in which case Helm will remove the key from the overridden values merge.

jennerm avatar Nov 08 '23 12:11 jennerm

I stumbled across the same issue of using the debug exporter as the OTel Collector docs suggest when troubleshooting, only to find I needed to use the older logging exporter with the ADOT image instead.

When running the current ADOT Collector (v0.36.0), you'll see the following warnings in the logs when using the logging exporter:

info	[email protected]/exporter.go:275	Deprecated component. Will be removed in future releases.	{"kind": "exporter", "data_type": "metrics", "name": "logging"}
info	[email protected]/exporter.go:275	Deprecated component. Will be removed in future releases.	{"kind": "exporter", "data_type": "traces", "name": "logging"}
info	[email protected]/exporter.go:275	Deprecated component. Will be removed in future releases.	{"kind": "exporter", "data_type": "logs", "name": "logging"}

I'd love to fix them, however, users of the image can't act on those deprecations until the debug exporter is included. 😅

XanderXAJ avatar Dec 15 '23 12:12 XanderXAJ

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Feb 18 '24 20:02 github-actions[bot]

It would be good to update the debug exporter added to the image.

jennerm avatar Feb 18 '24 21:02 jennerm

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Apr 28 '24 20:04 github-actions[bot]

Keeping this alive, I think it is still relevant.

jennerm avatar Apr 29 '24 07:04 jennerm

Very much relevant, cant really debug right now.

benny-yamagata avatar May 13 '24 21:05 benny-yamagata

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jul 14 '24 20:07 github-actions[bot]

This issue was closed because it has been marked as stale for 30 days with no activity.

github-actions[bot] avatar Aug 18 '24 20:08 github-actions[bot]