Skip to content
DocsTry Aspire
DocsTry

SurrealDbServerResource.withSurrealDbOtlpExporter

Method
📦 CommunityToolkit.Aspire.Hosting.SurrealDb v13.4.0
interface SurrealDbServerResource {
// ... omitted for brevity
withSurrealDbOtlpExporter(): SurrealDbServerResource;
}

Signature

methodwithSurrealDbOtlpExporterbuilder
Injects the appropriate environment variables to allow the resource to enable sending telemetry to the dashboard. 1. It sets the OTLP endpoint to the value of the DOTNET_DASHBOARD_OTLP_ENDPOINT_URL environment variable. 2. It sets the service name and instance id to the resource name and UID. Values are injected by the orchestrator. 3. It sets a small batch schedule delay in development. This reduces the delay that OTLP exporter waits to sends telemetry and makes the dashboard telemetry pages responsive.
withSurrealDbOtlpExporter(): SurrealDbServerResource
SurrealDbServerResource

Defined on

This method is defined on the following type: