diff --git a/README.md b/README.md index 2ae3e44..ab994be 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ It's worth to mention that the extension is using the [OpenTelemetry Go SDK](htt ### OpenTelemetry-specific configuration -* `K6_OTEL_EXPORT_INTERVAL` - configures the intervening time between metrics exports. Default is `1s`. +* `K6_OTEL_EXPORT_INTERVAL` - configures the intervening time between metrics exports. Default is `10s`. * `K6_OTEL_EXPORTER_TYPE` - metric exporter type. Default is `grpc`. #### GRPC exporter diff --git a/pkg/opentelemetry/config.go b/pkg/opentelemetry/config.go index 58d6925..c5a6f25 100644 --- a/pkg/opentelemetry/config.go +++ b/pkg/opentelemetry/config.go @@ -102,7 +102,7 @@ func newDefaultConfig() Config { GRPCExporterInsecure: null.BoolFrom(false), GRPCExporterEndpoint: null.StringFrom("localhost:4317"), - ExportInterval: types.NullDurationFrom(1 * time.Second), + ExportInterval: types.NullDurationFrom(10 * time.Second), FlushInterval: types.NullDurationFrom(1 * time.Second), } } diff --git a/pkg/opentelemetry/config_test.go b/pkg/opentelemetry/config_test.go index 5605418..3bdd6ef 100644 --- a/pkg/opentelemetry/config_test.go +++ b/pkg/opentelemetry/config_test.go @@ -31,7 +31,7 @@ func TestConfig(t *testing.T) { HTTPExporterURLPath: null.StringFrom("/v1/metrics"), GRPCExporterInsecure: null.NewBool(false, true), GRPCExporterEndpoint: null.StringFrom("localhost:4317"), - ExportInterval: types.NullDurationFrom(1 * time.Second), + ExportInterval: types.NullDurationFrom(10 * time.Second), FlushInterval: types.NullDurationFrom(1 * time.Second), }, },