Skip to main content

Go Manual Logger

Logging calls to custom models is supported via the Planck Go SDK.
The Planck Go helpers are not published yet. The module path below is the planned public path and will work only after the Go SDK is released.
1

Install the Planck helpers package

2

Set `PLANCK_API_KEY` as an environment variable

You can also set the Planck API Key in your code (See below)
3

Create a new PlanckManualLogger instance

4

Define your operation and make the request

API Reference

ManualLogger

LogOptions

LogRequest

Parameters

  1. request: A PlanckLogRequest (interface) containing the request parameters
  2. operation: A function that takes a ResultRecorder and returns a result
  3. additionalHeaders: A map of string keys to string values

ResultRecorder