Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ func newBeholderClient(
ChipIngressEmitterGRPCEndpoint: cfgTelemetry.ChipIngressEndpoint(),
ChipIngressInsecureConnection: cfgTelemetry.ChipIngressInsecureConnection(),
ChipIngressBatchEmitterEnabled: cfgTelemetry.ChipIngressBatchEmitterEnabled(),
ChipIngressBufferSize: cfgTelemetry.ChipIngressBufferSize(),
ChipIngressMaxBatchSize: cfgTelemetry.ChipIngressMaxBatchSize(),
ChipIngressMaxConcurrentSends: cfgTelemetry.ChipIngressMaxConcurrentSends(),
ChipIngressSendInterval: cfgTelemetry.ChipIngressSendInterval(),
ChipIngressSendTimeout: cfgTelemetry.ChipIngressSendTimeout(),
ChipIngressDrainTimeout: cfgTelemetry.ChipIngressDrainTimeout(),
ChipIngressMaxGRPCRequestSize: cfgTelemetry.ChipIngressMaxGRPCRequestSize(),
ChipIngressLogger: lggr,
LogStreamingEnabled: cfgTelemetry.LogStreamingEnabled(),
LogLevel: cfgTelemetry.LogLevel(),
Expand Down
14 changes: 14 additions & 0 deletions core/config/docs/core.toml
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,20 @@ ChipIngressInsecureConnection = false # Default
# ChipIngressBatchEmitterEnabled enables batching for chip-ingress events.
# When false, events are sent individually (legacy behavior).
ChipIngressBatchEmitterEnabled = true # Default
# ChipIngressBufferSize is the in-memory queue size for chip-ingress events.
ChipIngressBufferSize = 1000 # Default
# ChipIngressMaxBatchSize is the max events per PublishBatch RPC.
ChipIngressMaxBatchSize = 500 # Default
# ChipIngressMaxConcurrentSends limits parallel PublishBatch calls.
ChipIngressMaxConcurrentSends = 10 # Default
# ChipIngressSendInterval is the max wait before flushing an incomplete batch.
ChipIngressSendInterval = '100ms' # Default
# ChipIngressSendTimeout is the per-RPC timeout for PublishBatch.
ChipIngressSendTimeout = '3s' # Default
# ChipIngressDrainTimeout is the max shutdown wait to flush queued events.
ChipIngressDrainTimeout = '10s' # Default
# ChipIngressMaxGRPCRequestSize is the max serialized PublishBatch request size in bytes. Batches exceeding this are split before send (min 1 MiB enforced by batch client).
ChipIngressMaxGRPCRequestSize = 10485760 # Default
# DurableEmitterEnabled enables persisting outbound CHIP events to Postgres for at-least-once delivery.
DurableEmitterEnabled = false # Default
# HeartbeatInterval is the interval at which a the application heartbeat is sent to telemetry backends.
Expand Down
7 changes: 7 additions & 0 deletions core/config/telemetry_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ type Telemetry interface {
ChipIngressEndpoint() string
ChipIngressInsecureConnection() bool
ChipIngressBatchEmitterEnabled() bool
ChipIngressBufferSize() uint
ChipIngressMaxBatchSize() uint
ChipIngressMaxConcurrentSends() int
ChipIngressSendInterval() time.Duration
ChipIngressSendTimeout() time.Duration
ChipIngressDrainTimeout() time.Duration
ChipIngressMaxGRPCRequestSize() uint
DurableEmitterEnabled() bool
HeartbeatInterval() time.Duration
LogStreamingEnabled() bool
Expand Down
49 changes: 49 additions & 0 deletions core/config/toml/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2968,6 +2968,13 @@
ChipIngressEndpoint *string
ChipIngressInsecureConnection *bool
ChipIngressBatchEmitterEnabled *bool
ChipIngressBufferSize *uint
ChipIngressMaxBatchSize *uint
ChipIngressMaxConcurrentSends *int
ChipIngressSendInterval *commonconfig.Duration
ChipIngressSendTimeout *commonconfig.Duration
ChipIngressDrainTimeout *commonconfig.Duration
ChipIngressMaxGRPCRequestSize *uint
DurableEmitterEnabled *bool
HeartbeatInterval *commonconfig.Duration
LogLevel *string
Expand Down Expand Up @@ -3018,6 +3025,27 @@
if v := f.ChipIngressBatchEmitterEnabled; v != nil {
b.ChipIngressBatchEmitterEnabled = v
}
if v := f.ChipIngressBufferSize; v != nil {
b.ChipIngressBufferSize = v
}
if v := f.ChipIngressMaxBatchSize; v != nil {
b.ChipIngressMaxBatchSize = v
}
if v := f.ChipIngressMaxConcurrentSends; v != nil {
b.ChipIngressMaxConcurrentSends = v
}
if v := f.ChipIngressSendInterval; v != nil {
b.ChipIngressSendInterval = v
}
if v := f.ChipIngressSendTimeout; v != nil {
b.ChipIngressSendTimeout = v
}
if v := f.ChipIngressDrainTimeout; v != nil {
b.ChipIngressDrainTimeout = v
}
if v := f.ChipIngressMaxGRPCRequestSize; v != nil {
b.ChipIngressMaxGRPCRequestSize = v
}
if v := f.DurableEmitterEnabled; v != nil {
b.DurableEmitterEnabled = v
}
Expand Down Expand Up @@ -3064,6 +3092,27 @@
if ratio := b.TraceSampleRatio; ratio != nil && (*ratio < 0 || *ratio > 1) {
err = errors.Join(err, configutils.ErrInvalid{Name: "TraceSampleRatio", Value: *ratio, Msg: "must be between 0 and 1"})
}
if v := b.ChipIngressBufferSize; v != nil && *v == 0 {
err = errors.Join(err, configutils.ErrInvalid{Name: "ChipIngressBufferSize", Value: *v, Msg: "must be greater than 0"})

Check warning on line 3096 in core/config/toml/types.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Define a constant instead of duplicating this literal "must be greater than 0" 7 times.

[S1192] String literals should not be duplicated See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=bf7f4bba-39cb-426d-9e6d-8582345ddfae&open=bf7f4bba-39cb-426d-9e6d-8582345ddfae
}
if v := b.ChipIngressMaxBatchSize; v != nil && *v == 0 {
err = errors.Join(err, configutils.ErrInvalid{Name: "ChipIngressMaxBatchSize", Value: *v, Msg: "must be greater than 0"})
}
if v := b.ChipIngressMaxConcurrentSends; v != nil && *v <= 0 {
err = errors.Join(err, configutils.ErrInvalid{Name: "ChipIngressMaxConcurrentSends", Value: *v, Msg: "must be greater than 0"})
}
if v := b.ChipIngressSendInterval; v != nil && v.Duration() <= 0 {
err = errors.Join(err, configutils.ErrInvalid{Name: "ChipIngressSendInterval", Value: v.Duration(), Msg: "must be greater than 0"})
}
if v := b.ChipIngressSendTimeout; v != nil && v.Duration() <= 0 {
err = errors.Join(err, configutils.ErrInvalid{Name: "ChipIngressSendTimeout", Value: v.Duration(), Msg: "must be greater than 0"})
}
if v := b.ChipIngressDrainTimeout; v != nil && v.Duration() <= 0 {
err = errors.Join(err, configutils.ErrInvalid{Name: "ChipIngressDrainTimeout", Value: v.Duration(), Msg: "must be greater than 0"})
}
if v := b.ChipIngressMaxGRPCRequestSize; v != nil && *v == 0 {
err = errors.Join(err, configutils.ErrInvalid{Name: "ChipIngressMaxGRPCRequestSize", Value: *v, Msg: "must be greater than 0"})
}
return err
}

Expand Down
49 changes: 49 additions & 0 deletions core/services/chainlink/config_telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,55 @@ func (b *telemetryConfig) ChipIngressBatchEmitterEnabled() bool {
return *b.s.ChipIngressBatchEmitterEnabled
}

func (b *telemetryConfig) ChipIngressBufferSize() uint {
if b.s.ChipIngressBufferSize == nil {
return 0
}
return *b.s.ChipIngressBufferSize
}

func (b *telemetryConfig) ChipIngressMaxBatchSize() uint {
if b.s.ChipIngressMaxBatchSize == nil {
return 0
}
return *b.s.ChipIngressMaxBatchSize
}

func (b *telemetryConfig) ChipIngressMaxConcurrentSends() int {
if b.s.ChipIngressMaxConcurrentSends == nil {
return 0
}
return *b.s.ChipIngressMaxConcurrentSends
}

func (b *telemetryConfig) ChipIngressSendInterval() time.Duration {
if b.s.ChipIngressSendInterval == nil {
return 0
}
return b.s.ChipIngressSendInterval.Duration()
}

func (b *telemetryConfig) ChipIngressSendTimeout() time.Duration {
if b.s.ChipIngressSendTimeout == nil {
return 0
}
return b.s.ChipIngressSendTimeout.Duration()
}

func (b *telemetryConfig) ChipIngressDrainTimeout() time.Duration {
if b.s.ChipIngressDrainTimeout == nil {
return 0
}
return b.s.ChipIngressDrainTimeout.Duration()
}

func (b *telemetryConfig) ChipIngressMaxGRPCRequestSize() uint {
if b.s.ChipIngressMaxGRPCRequestSize == nil {
return 0
}
return *b.s.ChipIngressMaxGRPCRequestSize
}

func (b *telemetryConfig) DurableEmitterEnabled() bool {
if b.s.DurableEmitterEnabled == nil {
return false
Expand Down
123 changes: 123 additions & 0 deletions core/services/chainlink/config_telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,129 @@
return &f
}

func ptrUint(u uint) *uint {

Check warning on line 248 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

newexpr: ptrUint can be an inlinable wrapper around new(expr)

[modernize.bug.major] null See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=13617ebd-9c25-4881-8951-7037d6f27307&open=13617ebd-9c25-4881-8951-7037d6f27307
return &u
}

func TestTelemetryConfig_ChipIngressBufferSize(t *testing.T) {

Check warning on line 252 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Function TestTelemetryConfig_ChipIngressBufferSize missing the call to method parallel

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=eaf2b491-d4f4-464b-ad29-c6f159b675fc&open=eaf2b491-d4f4-464b-ad29-c6f159b675fc
tests := []struct {
name string
telemetry toml.Telemetry
expected uint
}{
{"ChipIngressBufferSizeSet", toml.Telemetry{ChipIngressBufferSize: ptrUint(1000)}, 1000},
{"ChipIngressBufferSizeNil", toml.Telemetry{ChipIngressBufferSize: nil}, 0},
}
for _, tt := range tests {

Check warning on line 261 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Range statement for test TestTelemetryConfig_ChipIngressBufferSize missing the call to method parallel in test Run

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=3fedebc2-54a1-468c-b2ea-ad3a9b7ea87f&open=3fedebc2-54a1-468c-b2ea-ad3a9b7ea87f
t.Run(tt.name, func(t *testing.T) {
tc := telemetryConfig{s: tt.telemetry}
assert.Equal(t, tt.expected, tc.ChipIngressBufferSize())
})
}
}

func TestTelemetryConfig_ChipIngressMaxBatchSize(t *testing.T) {

Check warning on line 269 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Function TestTelemetryConfig_ChipIngressMaxBatchSize missing the call to method parallel

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=b26934a3-3d79-4fce-86be-6cabc9569042&open=b26934a3-3d79-4fce-86be-6cabc9569042
tests := []struct {
name string
telemetry toml.Telemetry
expected uint
}{
{"ChipIngressMaxBatchSizeSet", toml.Telemetry{ChipIngressMaxBatchSize: ptrUint(500)}, 500},
{"ChipIngressMaxBatchSizeNil", toml.Telemetry{ChipIngressMaxBatchSize: nil}, 0},
}
for _, tt := range tests {

Check warning on line 278 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Range statement for test TestTelemetryConfig_ChipIngressMaxBatchSize missing the call to method parallel in test Run

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=4e995943-4c9e-466b-bd7d-3932dcc9e60a&open=4e995943-4c9e-466b-bd7d-3932dcc9e60a
t.Run(tt.name, func(t *testing.T) {
tc := telemetryConfig{s: tt.telemetry}
assert.Equal(t, tt.expected, tc.ChipIngressMaxBatchSize())
})
}
}

func TestTelemetryConfig_ChipIngressMaxConcurrentSends(t *testing.T) {

Check warning on line 286 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Function TestTelemetryConfig_ChipIngressMaxConcurrentSends missing the call to method parallel

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=5c13f92c-1b23-41cd-b2e1-e16ab0f8285a&open=5c13f92c-1b23-41cd-b2e1-e16ab0f8285a
tests := []struct {
name string
telemetry toml.Telemetry
expected int
}{
{"ChipIngressMaxConcurrentSendsSet", toml.Telemetry{ChipIngressMaxConcurrentSends: ptrInt(10)}, 10},

Check warning on line 292 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

newexpr: call of ptrInt(x) can be simplified to new(x)

[modernize.bug.major] null See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=dce4a87f-d7a7-43f7-b9fd-afb77bc2f535&open=dce4a87f-d7a7-43f7-b9fd-afb77bc2f535
{"ChipIngressMaxConcurrentSendsNil", toml.Telemetry{ChipIngressMaxConcurrentSends: nil}, 0},
}
for _, tt := range tests {

Check warning on line 295 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Range statement for test TestTelemetryConfig_ChipIngressMaxConcurrentSends missing the call to method parallel in test Run

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=cb26d68b-bdb4-42ca-a972-3ec18e4c6d7a&open=cb26d68b-bdb4-42ca-a972-3ec18e4c6d7a
t.Run(tt.name, func(t *testing.T) {
tc := telemetryConfig{s: tt.telemetry}
assert.Equal(t, tt.expected, tc.ChipIngressMaxConcurrentSends())
})
}
}

func TestTelemetryConfig_ChipIngressSendInterval(t *testing.T) {

Check warning on line 303 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Function TestTelemetryConfig_ChipIngressSendInterval missing the call to method parallel

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=5b995375-01db-498b-b9d5-609572199ba3&open=5b995375-01db-498b-b9d5-609572199ba3
tests := []struct {
name string
telemetry toml.Telemetry
expected time.Duration
}{
{"ChipIngressSendIntervalSet", toml.Telemetry{ChipIngressSendInterval: ptrDuration(100 * time.Millisecond)}, 100 * time.Millisecond},
{"ChipIngressSendIntervalNil", toml.Telemetry{ChipIngressSendInterval: nil}, 0},
}
for _, tt := range tests {

Check warning on line 312 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Range statement for test TestTelemetryConfig_ChipIngressSendInterval missing the call to method parallel in test Run

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=5e13bd55-9f12-4fff-8732-686b25915de8&open=5e13bd55-9f12-4fff-8732-686b25915de8
t.Run(tt.name, func(t *testing.T) {
tc := telemetryConfig{s: tt.telemetry}
assert.Equal(t, tt.expected, tc.ChipIngressSendInterval())
})
}
}

func TestTelemetryConfig_ChipIngressSendTimeout(t *testing.T) {

Check warning on line 320 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Function TestTelemetryConfig_ChipIngressSendTimeout missing the call to method parallel

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=7873b181-9cf8-4bdc-9089-64b806e92bce&open=7873b181-9cf8-4bdc-9089-64b806e92bce
tests := []struct {
name string
telemetry toml.Telemetry
expected time.Duration
}{
{"ChipIngressSendTimeoutSet", toml.Telemetry{ChipIngressSendTimeout: ptrDuration(3 * time.Second)}, 3 * time.Second},
{"ChipIngressSendTimeoutNil", toml.Telemetry{ChipIngressSendTimeout: nil}, 0},
}
for _, tt := range tests {

Check warning on line 329 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Range statement for test TestTelemetryConfig_ChipIngressSendTimeout missing the call to method parallel in test Run

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=8abe84e9-93d3-46fb-9c6b-549ac7f7c862&open=8abe84e9-93d3-46fb-9c6b-549ac7f7c862
t.Run(tt.name, func(t *testing.T) {
tc := telemetryConfig{s: tt.telemetry}
assert.Equal(t, tt.expected, tc.ChipIngressSendTimeout())
})
}
}

func TestTelemetryConfig_ChipIngressDrainTimeout(t *testing.T) {

Check warning on line 337 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Function TestTelemetryConfig_ChipIngressDrainTimeout missing the call to method parallel

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=e3353672-94a3-45bb-8f06-675f87bdfea5&open=e3353672-94a3-45bb-8f06-675f87bdfea5
tests := []struct {
name string
telemetry toml.Telemetry
expected time.Duration
}{
{"ChipIngressDrainTimeoutSet", toml.Telemetry{ChipIngressDrainTimeout: ptrDuration(10 * time.Second)}, 10 * time.Second},
{"ChipIngressDrainTimeoutNil", toml.Telemetry{ChipIngressDrainTimeout: nil}, 0},
}
for _, tt := range tests {

Check warning on line 346 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Range statement for test TestTelemetryConfig_ChipIngressDrainTimeout missing the call to method parallel in test Run

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=d0fbe3f8-fc01-4863-a475-ca915ca31f34&open=d0fbe3f8-fc01-4863-a475-ca915ca31f34
t.Run(tt.name, func(t *testing.T) {
tc := telemetryConfig{s: tt.telemetry}
assert.Equal(t, tt.expected, tc.ChipIngressDrainTimeout())
})
}
}

func TestTelemetryConfig_ChipIngressMaxGRPCRequestSize(t *testing.T) {

Check warning on line 354 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Function TestTelemetryConfig_ChipIngressMaxGRPCRequestSize missing the call to method parallel

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=dd41a182-82a4-4711-826a-f9c5d6d396d0&open=dd41a182-82a4-4711-826a-f9c5d6d396d0
tests := []struct {
name string
telemetry toml.Telemetry
expected uint
}{
{"ChipIngressMaxGRPCRequestSizeSet", toml.Telemetry{ChipIngressMaxGRPCRequestSize: ptrUint(10485760)}, 10485760},
{"ChipIngressMaxGRPCRequestSizeNil", toml.Telemetry{ChipIngressMaxGRPCRequestSize: nil}, 0},
}
for _, tt := range tests {

Check warning on line 363 in core/services/chainlink/config_telemetry_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

Range statement for test TestTelemetryConfig_ChipIngressMaxGRPCRequestSize missing the call to method parallel in test Run

[paralleltest.bug.major] Issue raised by paralleltest See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=cf3034bb-1de6-418b-88f1-8208e2606584&open=cf3034bb-1de6-418b-88f1-8208e2606584
t.Run(tt.name, func(t *testing.T) {
tc := telemetryConfig{s: tt.telemetry}
assert.Equal(t, tt.expected, tc.ChipIngressMaxGRPCRequestSize())
})
}
}

func TestTelemetryConfig_HeartbeatInterval(t *testing.T) {
tests := []struct {
name string
Expand Down
7 changes: 7 additions & 0 deletions core/services/chainlink/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,13 @@
ChipIngressEndpoint: ptr("example.com/chip-ingress"),
ChipIngressInsecureConnection: ptr(false),
ChipIngressBatchEmitterEnabled: ptr(true),
ChipIngressBufferSize: ptr[uint](1000),
ChipIngressMaxBatchSize: ptr[uint](500),
ChipIngressMaxConcurrentSends: ptr[int](10),

Check warning on line 567 in core/services/chainlink/config_test.go

View check run for this annotation

CL-sonarqube-production / SonarQube Code Analysis

newexpr: call of ptr(x) can be simplified to new(x)

[modernize.bug.major] null See more on https://sonarqube.main.prod.cldev.sh/project/issues?id=smartcontractkit_chainlink&pullRequest=22987&issues=65cb8f36-c49d-4a9e-bb97-35a8ff541bcb&open=65cb8f36-c49d-4a9e-bb97-35a8ff541bcb
ChipIngressSendInterval: commoncfg.MustNewDuration(100 * time.Millisecond),
ChipIngressSendTimeout: commoncfg.MustNewDuration(3 * time.Second),
ChipIngressDrainTimeout: commoncfg.MustNewDuration(10 * time.Second),
ChipIngressMaxGRPCRequestSize: ptr[uint](10485760),
DurableEmitterEnabled: ptr(false),
HeartbeatInterval: commoncfg.MustNewDuration(1 * time.Second),
LogStreamingEnabled: ptr(false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,13 @@ AuthHeadersTTL = '0s'
ChipIngressEndpoint = ''
ChipIngressInsecureConnection = false
ChipIngressBatchEmitterEnabled = true
ChipIngressBufferSize = 1000
ChipIngressMaxBatchSize = 500
ChipIngressMaxConcurrentSends = 10
ChipIngressSendInterval = '100ms'
ChipIngressSendTimeout = '3s'
ChipIngressDrainTimeout = '10s'
ChipIngressMaxGRPCRequestSize = 10485760
DurableEmitterEnabled = false
HeartbeatInterval = '1s'
LogLevel = 'info'
Expand Down
7 changes: 7 additions & 0 deletions core/services/chainlink/testdata/config-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,13 @@ AuthHeadersTTL = '0s'
ChipIngressEndpoint = 'example.com/chip-ingress'
ChipIngressInsecureConnection = false
ChipIngressBatchEmitterEnabled = true
ChipIngressBufferSize = 1000
ChipIngressMaxBatchSize = 500
ChipIngressMaxConcurrentSends = 10
ChipIngressSendInterval = '100ms'
ChipIngressSendTimeout = '3s'
ChipIngressDrainTimeout = '10s'
ChipIngressMaxGRPCRequestSize = 10485760
DurableEmitterEnabled = false
HeartbeatInterval = '1s'
LogLevel = 'info'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,13 @@ AuthHeadersTTL = '0s'
ChipIngressEndpoint = ''
ChipIngressInsecureConnection = false
ChipIngressBatchEmitterEnabled = true
ChipIngressBufferSize = 1000
ChipIngressMaxBatchSize = 500
ChipIngressMaxConcurrentSends = 10
ChipIngressSendInterval = '100ms'
ChipIngressSendTimeout = '3s'
ChipIngressDrainTimeout = '10s'
ChipIngressMaxGRPCRequestSize = 10485760
DurableEmitterEnabled = false
HeartbeatInterval = '1s'
LogLevel = 'info'
Expand Down
Loading
Loading