---
title: Traces exporter
description: Traces exporter
url: https://coralogix.com/docs/user-guides/rum/sdk-installation/flutter/mobile/configuration/traces-exporter/
product: ingress
feature: RUM Ingress
feature_id: rum.ingress
feature_identifier: ingress/rum.ingress
last_updated: '2026-09-09'
---

# Traces exporter

### Traces exporter

Use `tracesExporter` in `CXExporterOptions` to receive native-exported trace batches as OTLP-style JSON maps over the Flutter bridge.

```
final options = CXExporterOptions(

  // ...other options...

  tracesExporter: (Map<String, dynamic> batch) {

    // Example: batch['resourceSpans'] -> scopeSpans -> spans

    debugPrint('Received trace batch with keys: ${batch.keys.toList()}');

  },

  enableSwizzling: true,

);
```

Typical payload shape (simplified):

* `resourceSpans` (array)
* `resourceSpans[].scopeSpans` (array)
* `resourceSpans[].scopeSpans[].spans` (array of span objects like `traceId`, `spanId`, `name`, timestamps, attributes)
