Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface openai

This plugin automatically instruments the openai module.

Note that for logs to work you'll need to set the DD_API_KEY environment variable. You'll also need to adjust any firewall settings to allow the tracer to communicate with http-intake.logs.datadoghq.com.

Note that for metrics to work you'll need to enable DogStatsD in the agent.

Hierarchy

  • Instrumentation
    • openai

Index

Properties

Properties

Optional enabled

enabled: undefined | false | true

Whether to enable the plugin.

default

true

Optional measured

measured: boolean | {}

Whether to measure the span. Can also be set to a key-value pair with span names as keys and booleans as values for more granular control.

Optional service

service: string | any

The service name to be used for this plugin.

Generated using TypeDoc