> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# flush

***

# Function: flush()

```ts theme={null}
function flush(options: LoggerKeyOptions): Promise<void>;
```

Defined in: [src/singleton.ts](https://github.com/rungalileo/galileo-js/blob/main/src/singleton.ts)

Flush (upload) traces from a specific logger to the Galileo platform.

Options provided determine which logger is flushed (no options means 'default' logger).

## Parameters

### options

`LoggerKeyOptions` = `{}`

Configuration options to identify which logger to flush

## Returns

`Promise`\<`void`>
