Skip to content
Docs Try Aspire
Docs Try

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

Applies to

This method applies to the following types: