Skip to content

Commit cec4b0f

Browse files
committed
review feedback: keep unused values marked as deprecated. Add a new
field. Signed-off-by: thomas.ebner <[email protected]>
1 parent 087f921 commit cec4b0f

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

api/envoy/extensions/tracers/opentelemetry/samplers/v3/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ licenses(["notice"]) # Apache 2
66

77
api_proto_package(
88
deps = [
9+
"//envoy/annotations:pkg",
910
"//envoy/config/core/v3:pkg",
1011
"@com_github_cncf_xds//udpa/annotations:pkg",
1112
],

api/envoy/extensions/tracers/opentelemetry/samplers/v3/dynatrace_sampler.proto

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ syntax = "proto3";
33
package envoy.extensions.tracers.opentelemetry.samplers.v3;
44

55
import "envoy/config/core/v3/http_service.proto";
6+
import "envoy/config/core/v3/http_uri.proto";
67

8+
import "envoy/annotations/deprecation.proto";
79
import "udpa/annotations/status.proto";
810

911
option java_package = "io.envoyproxy.envoy.extensions.tracers.opentelemetry.samplers.v3";
@@ -16,6 +18,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
1618

1719
// Configuration for the Dynatrace Sampler extension.
1820
// [#extension: envoy.tracers.opentelemetry.samplers.dynatrace]
21+
// [#next-free-field: 7]
1922
message DynatraceSamplerConfig {
2023
// The Dynatrace tenant.
2124
//
@@ -27,6 +30,22 @@ message DynatraceSamplerConfig {
2730
// The value can be obtained from the Envoy deployment page in Dynatrace.
2831
int32 cluster_id = 2;
2932

33+
// [#not-implemented-hide:]
34+
config.core.v3.HttpUri http_uri = 3
35+
[deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
36+
37+
// [#not-implemented-hide:]
38+
string token = 4 [deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
39+
40+
// Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API.
41+
//
42+
// A default value of ``1000`` is used when:
43+
//
44+
// - ``root_spans_per_minute`` is unset
45+
// - ``root_spans_per_minute`` is set to 0
46+
//
47+
uint32 root_spans_per_minute = 5;
48+
3049
// The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example:
3150
//
3251
// .. code-block:: yaml
@@ -41,14 +60,5 @@ message DynatraceSamplerConfig {
4160
// key : "authorization"
4261
// value: "Api-Token dt..."
4362
//
44-
config.core.v3.HttpService http_service = 3;
45-
46-
// Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API.
47-
//
48-
// A default value of ``1000`` is used when:
49-
//
50-
// - ``root_spans_per_minute`` is unset
51-
// - ``root_spans_per_minute`` is set to 0
52-
//
53-
uint32 root_spans_per_minute = 4;
63+
config.core.v3.HttpService http_service = 6;
5464
}

0 commit comments

Comments
 (0)