Skip to content
Docs Try Aspire
Docs Try

K6Resource.withK6OtlpEnvironment

Method
📦 CommunityToolkit.Aspire.Hosting.k6 v13.4.0
interface K6Resource {
// ... omitted for brevity
withK6OtlpEnvironment(): K6Resource;
}

Signature

method withK6OtlpEnvironment builder
Set K6 environment variables from the existing OTEL environment set for this resource. See https://grafana.com/docs/k6/latest/results-output/real-time/opentelemetry/#configuration.
withK6OtlpEnvironment(): K6Resource
K6Resource

Defined on

This method is defined on the following type: