addWeaveExporter

fun OpenTelemetryConfig.addWeaveExporter(weaveOtelBaseUrl: String? = null, weaveEntity: String? = null, weaveProjectName: String? = null, weaveApiKey: String? = null, timeout: Duration = 10.seconds)(source)

Configure an OpenTelemetry span exporter that sends data to W&B Weave.

Parameters

weaveOtelBaseUrl

the URL of the Weave OpenTelemetry endpoint. If not set is retrieved from WEAVE_URL environment variable. Defaults to https://trace.wandb.ai.

weaveEntity

can be found by visiting your W&B dashboard at https://wandb.ai/home and checking the Teams field in the left sidebar. If not set is retrieved from WEAVE_ENTITY environment variable.

weaveProjectName

name of your Weave project. If not set is retrieved from WEAVE_PROJECT_NAME environment variable.

weaveApiKey

can be created on the https://wandb.ai/authorize page. If not set is retrieved from WEAVE_API_KEY environment variable.

timeout

OpenTelemetry SpanExporter timeout. See io.opentelemetry.exporter.otlp.http.trace.OtlpHttpSpanExporterBuilder.setTimeout.

See also