Skip to content

Commit 53fc1fe

Browse files
remove useStreaming field
1 parent af23902 commit 53fc1fe

File tree

11 files changed

+189
-309
lines changed

11 files changed

+189
-309
lines changed

docs/api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ Following is the supported API format for writing to loki:
330330
maxSendMsgSize: maximum message size the client can send
331331
keepAlive: keep alive interval
332332
keepAliveTimeout: keep alive timeout
333-
useStreaming: use streaming for real-time log pushing
334333
tls: TLS configuration
335334
enabled: enable TLS
336335
certFile: path to client certificate file

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,4 @@ require (
176176

177177
replace github.com/vmware/go-ipfix => github.com/jotak/go-ipfix v0.0.0-20250708115123-407c539ea101
178178

179-
replace github.com/netobserv/loki-client-go => github.com/leandroberetta/loki-client-go v0.0.0-20250910180315-84da2ae0cd4b
179+
replace github.com/netobserv/loki-client-go => github.com/leandroberetta/loki-client-go v0.0.0-20250923004934-a3e68fd6a596

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
206206
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
207207
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
208208
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
209-
github.com/leandroberetta/loki-client-go v0.0.0-20250910180315-84da2ae0cd4b h1:bZFg5ZB45OzbkO9x8EgW1vrsJ9xethOlgCTrTwqf798=
210-
github.com/leandroberetta/loki-client-go v0.0.0-20250910180315-84da2ae0cd4b/go.mod h1:Zb/jtD3Lnu88Poo+jnhTASzxYnvncmHOoZaT93xQjJ8=
209+
github.com/leandroberetta/loki-client-go v0.0.0-20250923004934-a3e68fd6a596 h1:FhZHtZsaCa4LMhgTrU+eM1iTnl2X1L1yrSRQjGHiJOo=
210+
github.com/leandroberetta/loki-client-go v0.0.0-20250923004934-a3e68fd6a596/go.mod h1:Zb/jtD3Lnu88Poo+jnhTASzxYnvncmHOoZaT93xQjJ8=
211211
github.com/libp2p/go-reuseport v0.4.0 h1:nR5KU7hD0WxXCJbmw7r2rhRYruNRl2koHw8fQscQm2s=
212212
github.com/libp2p/go-reuseport v0.4.0/go.mod h1:ZtI03j/wO5hZVDFo2jKywN6bYKWLOy8Se6DrI2E1cLU=
213213
github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4=

pkg/api/write_loki.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ type GRPCLokiConfig struct {
5959
MaxSendMsgSize int `yaml:"maxSendMsgSize,omitempty" json:"maxSendMsgSize,omitempty" doc:"maximum message size the client can send"`
6060
KeepAlive string `yaml:"keepAlive,omitempty" json:"keepAlive,omitempty" doc:"keep alive interval"`
6161
KeepAliveTimeout string `yaml:"keepAliveTimeout,omitempty" json:"keepAliveTimeout,omitempty" doc:"keep alive timeout"`
62-
UseStreaming bool `yaml:"useStreaming,omitempty" json:"useStreaming,omitempty" doc:"use streaming for real-time log pushing"`
6362
TLS *GRPCTLSConfig `yaml:"tls,omitempty" json:"tls,omitempty" doc:"TLS configuration"`
6463
}
6564

pkg/pipeline/write/write_loki.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ func buildGRPCLokiConfig(c *api.WriteLoki) (grpc.Config, error) {
189189
MaxSendMsgSize: c.GRPCConfig.MaxSendMsgSize,
190190
KeepAlive: keepAlive,
191191
KeepAliveTimeout: keepAliveTimeout,
192-
UseStreaming: c.GRPCConfig.UseStreaming,
193192
BackoffConfig: backoff.BackoffConfig{
194193
MinBackoff: minBackoff,
195194
MaxBackoff: maxBackoff,

pkg/pipeline/write/write_loki_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ func TestGRPCClientCreation(t *testing.T) {
379379
MaxSendMsgSize: 16 * 1024 * 1024,
380380
KeepAlive: "30s",
381381
KeepAliveTimeout: "5s",
382-
UseStreaming: false,
383382
},
384383
}
385384

@@ -399,7 +398,6 @@ func TestGRPCClientCreationWithTLS(t *testing.T) {
399398
MaxSendMsgSize: 16 * 1024 * 1024,
400399
KeepAlive: "30s",
401400
KeepAliveTimeout: "5s",
402-
UseStreaming: false,
403401
TLS: &api.GRPCTLSConfig{
404402
Enabled: true,
405403
CertFile: "/path/to/cert.pem",
@@ -442,7 +440,6 @@ func TestBuildGRPCLokiConfig(t *testing.T) {
442440
MaxSendMsgSize: 8 * 1024 * 1024,
443441
KeepAlive: "60s",
444442
KeepAliveTimeout: "10s",
445-
UseStreaming: true,
446443
},
447444
},
448445
wantErr: false,
@@ -569,7 +566,6 @@ func TestGRPCConfigValidation(t *testing.T) {
569566
MaxSendMsgSize: 16 * 1024 * 1024,
570567
KeepAlive: "30s",
571568
KeepAliveTimeout: "5s",
572-
UseStreaming: false,
573569
},
574570
wantErr: false,
575571
},

0 commit comments

Comments
 (0)