Disabling Traces in Elastic APM While Retaining Metrics

We are using the Elastic APM agent to monitor our applications. However, we only want to collect metrics and do not want to capture traces for the transactions.

Is there a way to disable trace collection while retaining metrics in the Elastic APM agent? If so, could you please guide us on how to configure this?

@Sylvain_Juge @stephenb hey guys, please suggest.

Hi,

Unfortunately there is no simple way to do that with the "classic" APM agents currently. You could however drop data with an ingest pipeline, so it would not consume any storage.

As a probably simpler alternative, the OpenTelemetry agent allows to distinguish the collection on a per-signal basis, so using any of the Elastic distributions (EDOT) or the upstream OpenTelemetry distributions/agents would allow to do that easily.

1 Like