Skip to content

Commit 5053dc8

Browse files
prodion23Donald Propst
andauthored
DC-1417: Add span processor type enum (#171)
* Add span processor type enum * Update runner --------- Co-authored-by: Donald Propst <donald.prospt@harness.io>
1 parent 9bd6b60 commit 5053dc8

File tree

7 files changed

+169
-73
lines changed

7 files changed

+169
-73
lines changed

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
static-analysis:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Repository
1313
uses: actions/checkout@v3

gen/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.24
55
require (
66
github.com/ghodss/yaml v1.0.0
77
github.com/stretchr/testify v1.11.1
8-
google.golang.org/protobuf v1.36.10
8+
google.golang.org/protobuf v1.36.11
99
)
1010

1111
require (

gen/go/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
88
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
99
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
1010
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
11-
google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE=
12-
google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
11+
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
12+
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
1313
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1414
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1515
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=

gen/go/proto/v1/config.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ message Reporting {
7676

7777
// Compression type
7878
CompressionType compression_type = 10;
79+
80+
// Span Processor type
81+
SpanProcessorType span_processor_type = 11;
7982
}
8083

8184
// Message describes what message should be considered for certain DataCapture option
@@ -155,6 +158,15 @@ enum TraceReporterType {
155158
OTLP_HTTP = 5;
156159
}
157160

161+
enum SpanProcessorType {
162+
// Default to none. Agent will use it's default span processor(typically batch)
163+
SPAN_PROCESSOR_TYPE_UNSPECIFIED = 0;
164+
165+
SPAN_PROCESSOR_TYPE_BATCH = 1;
166+
167+
SPAN_PROCESSOR_TYPE_SIMPLE = 2;
168+
}
169+
158170
// MetricReporterType represents the reporting format for metric data.
159171
enum MetricReporterType {
160172

gen/go/v1/config.pb.go

Lines changed: 135 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/v1/config.pbloader.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/hypertrace/agent/config/v1/config.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ message Reporting {
7676

7777
// Compression type
7878
CompressionType compression_type = 10;
79+
80+
// Span Processor type
81+
SpanProcessorType span_processor_type = 11;
7982
}
8083

8184
// Message describes what message should be considered for certain DataCapture option
@@ -155,6 +158,15 @@ enum TraceReporterType {
155158
OTLP_HTTP = 5;
156159
}
157160

161+
enum SpanProcessorType {
162+
// Default to none. Agent will use it's default span processor(typically batch)
163+
SPAN_PROCESSOR_TYPE_UNSPECIFIED = 0;
164+
165+
SPAN_PROCESSOR_TYPE_BATCH = 1;
166+
167+
SPAN_PROCESSOR_TYPE_SIMPLE = 2;
168+
}
169+
158170
// MetricReporterType represents the reporting format for metric data.
159171
enum MetricReporterType {
160172

0 commit comments

Comments
 (0)