---
title: NoOpSpanExporter
seo:
  title: NoOpSpanExporter — TypeScript SDK
  description: A no-op span exporter that discards all spans. (TypeScript SDK)
description: A no-op span exporter that discards all spans.
---

Used when monitoring is disabled or credentials are missing.

## export()

Export a batch of spans.

```typescript
function export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void
```

### Parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `spans` | `ReadableSpan[]` | - | The spans to export. |
| `resultCallback` | `(result: ExportResult) => void` | - | Callback invoked with the export result. |

### Returns

`void`

***

## shutdown()

Shut down the exporter.

```typescript
async function shutdown(): Promise<void>
```

### Returns

`Promise<void>`

***

## forceFlush()

Flush any pending exports.

```typescript
async function forceFlush(): Promise<void>
```

### Returns

`Promise<void>`
