Skip to content

Commit f8b2c26

Browse files
Avoid trace span buffer becoming too large (#39609)
Signed-off-by: 白泽 <[email protected]> Mirrored from https://github.com/envoyproxy/envoy @ 6baa92cce58a74893283dcc79bacbc2dad913cac
1 parent 581bee5 commit f8b2c26

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

envoy/config/trace/v3/opentelemetry.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import "envoy/config/core/v3/extension.proto";
66
import "envoy/config/core/v3/grpc_service.proto";
77
import "envoy/config/core/v3/http_service.proto";
88

9+
import "google/protobuf/wrappers.proto";
10+
911
import "udpa/annotations/migrate.proto";
1012
import "udpa/annotations/status.proto";
1113

@@ -19,7 +21,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
1921

2022
// Configuration for the OpenTelemetry tracer.
2123
// [#extension: envoy.tracers.opentelemetry]
22-
// [#next-free-field: 6]
24+
// [#next-free-field: 7]
2325
message OpenTelemetryConfig {
2426
// The upstream gRPC cluster that will receive OTLP traces.
2527
// Note that the tracer drops traces if the server does not read data fast enough.
@@ -57,4 +59,9 @@ message OpenTelemetryConfig {
5759
// See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
5860
// [#extension-category: envoy.tracers.opentelemetry.samplers]
5961
core.v3.TypedExtensionConfig sampler = 5;
62+
63+
// Envoy caches the span in memory when the OpenTelemetry backend service is temporarily unavailable.
64+
// This field specifies the maximum number of spans that can be cached. If not specified, the
65+
// default is 1024.
66+
google.protobuf.UInt32Value max_cache_size = 6;
6067
}

0 commit comments

Comments
 (0)