feat: support jobs

This commit is contained in:
Rogee
2024-12-30 17:37:36 +08:00
parent a3f7f566d7
commit 89fb7db933
5 changed files with 38 additions and 4 deletions

View File

@@ -28,6 +28,6 @@ const (
const (
QueueHigh = "high"
QueueDefault = "default"
QueueDefault = river.QueueDefault
QueueLow = "low"
)

View File

@@ -44,4 +44,8 @@ func (c *Config) format() {
if c.Reporter_CollectorEndpoint == "" {
c.Reporter_CollectorEndpoint = "http://127.0.0.1:14268/api/traces"
}
if c.Name == "" {
c.Name = "default"
}
}

View File

@@ -34,8 +34,8 @@ func Provide(opts ...opt.Option) error {
},
Reporter: &config.ReporterConfig{
LogSpans: true,
LocalAgentHostPort: "127.0.0.1:6831",
CollectorEndpoint: "http://127.0.0.1:14268/api/traces",
LocalAgentHostPort: conf.Reporter_LocalAgentHostPort,
CollectorEndpoint: conf.Reporter_CollectorEndpoint,
BufferFlushInterval: 100 * time.Millisecond,
QueueSize: 1000,
},