BigQueryAgentAnalyticsPlugin

constructor(config: BigQueryLoggerConfig, bigQuery: BigQuery = createBigQuery(config), ioContext: CoroutineContext = Dispatchers.IO, timeSource: TimeSource = TimeSource.Monotonic)

Creates a plugin that logs to the table config names.

Parameters

config

Where and what to log.

bigQuery

Client that creates and upgrades the table and its views; the Storage Write API writes the rows, and parts are uploaded to BigQueryLoggerConfig.gcsBucketName, with this client's credentials.

ioContext

Context that blocking BigQuery calls and the background writer run in.

timeSource

Clock for the interval between attempts to create the table.