Skip to content

Commit

Permalink
adding queue size
Browse files Browse the repository at this point in the history
  • Loading branch information
Varkeychan Jacob authored and Varkeychan Jacob committed Nov 25, 2024
1 parent e8c6763 commit 4d9c1cb
Show file tree
Hide file tree
Showing 7 changed files with 233 additions and 204 deletions.
1 change: 1 addition & 0 deletions ENV_VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Agents can be configured using environment variables:
| TA_METRICS_CONFIG_EXPORTER_ENABLED | When `true` metrics will be exported as spans from libtraceable |
| TA_METRICS_CONFIG_EXPORTER_EXPORT_INTERVAL_MS | Max interval for calls to TPA |
| TA_METRICS_CONFIG_EXPORTER_EXPORT_TIMEOUT_MS | Max timeout for calls to TPA |
| TA_METRICS_CONFIG_QUEUE_SIZE | Max length for metrics queue |
| TA_ENVIRONMENT | Represents the environment name of agent |
| TA_SERVICE_NAME | From HT config |
| TA_REPORTING_ENDPOINT | Represents the endpoint for reporting the traces For ZIPKIN reporter type use http://api.traceable.ai:9411/api/v2/spans For OTLP reporter type use http://api.traceable.ai:4317 |
Expand Down
2 changes: 1 addition & 1 deletion gen/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

require (
github.com/ghodss/yaml v1.0.0
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
google.golang.org/protobuf v1.35.2
)

Expand Down
4 changes: 2 additions & 2 deletions gen/go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
Expand Down
2 changes: 2 additions & 0 deletions gen/go/proto/v1/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ message MetricsConfig {
MetricsLogConfig logging = 3;
// config for exporting metrics to Traceable Platform
MetricsExporterConfig exporter = 4;
// max length for metrics queue
google.protobuf.Int32Value queue_size = 5;
}

enum SpanType {
Expand Down
416 changes: 215 additions & 201 deletions gen/go/v1/config.pb.go

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions gen/go/v1/config.pbloader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions proto/ai/traceable/agent/config/v1/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ message MetricsConfig {
MetricsLogConfig logging = 3;
// config for exporting metrics to Traceable Platform
MetricsExporterConfig exporter = 4;
// max length for metrics queue
google.protobuf.Int32Value queue_size = 5;
}

enum SpanType {
Expand Down

0 comments on commit 4d9c1cb

Please sign in to comment.