# Send2Bucket vs the OpenTelemetry Collector S3 exporter

The OpenTelemetry Collector's `awss3exporter` writes OTLP data from a Collector you run to an S3 bucket. Send2Bucket is a hosted OTLP endpoint that does the buffering, retries and delivery for you, and can also write to tables.

If you already operate Collectors and only need OTLP files in S3, the exporter is free and works. Choose Send2Bucket when you do not want to run, scale and monitor the write path, or when you want Iceberg, S3 Tables, DuckLake or a non-AWS bucket.

## At a glance

| | Send2Bucket | Collector `awss3exporter` |
|---|---|---|
| What you run | Nothing: point an OTLP exporter at Send2Bucket | Collector instances, their queues and scaling; the exporter is alpha for all three signals |
| Protocols in | OTLP over HTTP and gRPC, plus JSON events | Whatever receivers the Collector has |
| Output | gzip NDJSON with OTLP JSON in each record, or table rows | OTLP JSON or OTLP protobuf files, and other marshalers |
| Destinations | S3, Google Cloud Storage, S3-compatible, Iceberg REST, S3 Tables, Supabase Analytics, DuckLake | S3 and S3-compatible endpoints |
| Durability | `2xx` only after the batch is stored durably; retries until the destination confirms | Depends on the Collector's queue and storage; the sending queue is off by default |
| Price | [Plans and billing](../plans-and-billing.md) | Free software; you pay for the machines |

## Configure the Collector S3 exporter

The exporter's key is `awss3`. Without settings it writes uncompressed OTLP JSON, one object per batch, under `year=/month=/day=/hour=/minute=` folders, with its sending queue off:

```yaml
exporters:
  awss3:
    s3uploader:
      region: <region>
      s3_bucket: <bucket>
      s3_prefix: otel
      compression: gzip
    marshaler: otlp_json
    sending_queue:
      enabled: true

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [awss3]
```

- `marshaler: otlp_proto` writes protobuf instead; `body` and `sumo_ic` are for logs only.
- `endpoint` and `s3_force_path_style: true` point it at an S3-compatible store.
- Credentials come from the Collector's AWS environment, or `role_arn`.

## When the exporter fits better

- You already run Collectors per cluster and have their queues and alerts in place.
- You want OTLP protobuf files or a custom file layout.
- You only need raw files in S3, not tables.

## When Send2Bucket fits better

- **No Collector to run.** SDKs and existing Collectors export straight to the hosted endpoint. See the [API reference](../api-reference.md#otlp-http).
- **Tables, not only files.** Logs, spans and metrics can be appended to an Iceberg, S3 Tables or DuckLake table as they arrive.
- **One place for events too.** Product events over JSON go to the same destinations with the same key.

## Keeping your Collectors

You can keep Collectors for sampling and enrichment and replace only the S3 exporter with an `otlphttp` exporter:

```yaml
exporters:
  otlphttp/s2b:
    endpoint: https://api.send2bucket.com
    headers:
      authorization: Bearer ${env:S2B_API_KEY}
    compression: gzip
```

Then list `otlphttp/s2b` where the pipelines listed `awss3`. [Send OpenTelemetry to Amazon S3](../guides/opentelemetry-to-s3.md) walks through it end to end. Delivered records can be read with [DuckDB](../querying/duckdb.md) or any engine in [Querying](../querying/index.md).

## Sources

- [awss3exporter README, opentelemetry-collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/awss3exporter)
- [OpenTelemetry Collector configuration](https://opentelemetry.io/docs/collector/configuration/)
