Skip to content

Commit

Permalink
implement batching for dropped decisions
Browse files Browse the repository at this point in the history
  • Loading branch information
VinozzZ committed Oct 3, 2024
1 parent 60c0892 commit 178f1ce
Show file tree
Hide file tree
Showing 6 changed files with 380 additions and 222 deletions.
4 changes: 3 additions & 1 deletion app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
"github.com/honeycombio/refinery/internal/peer"
"github.com/honeycombio/refinery/logger"
"github.com/honeycombio/refinery/metrics"
"github.com/honeycombio/refinery/pubsub"
"github.com/honeycombio/refinery/sample"
"github.com/honeycombio/refinery/sharder"
"github.com/honeycombio/refinery/transmit"
Expand Down Expand Up @@ -198,6 +199,7 @@ func newStartedApp(
&inject.Object{Value: shrdr},
&inject.Object{Value: noop.NewTracerProvider().Tracer("test"), Name: "tracer"},
&inject.Object{Value: collector},
&inject.Object{Value: &pubsub.LocalPubSub{}},
&inject.Object{Value: metricsr, Name: "metrics"},
&inject.Object{Value: metricsr, Name: "genericMetrics"},
&inject.Object{Value: metricsr, Name: "upstreamMetrics"},
Expand Down Expand Up @@ -778,7 +780,7 @@ func TestPeerRouting_TraceLocalityDisabled(t *testing.T) {
Data: map[string]interface{}{
"trace_id": "2",
"meta.refinery.min_span": true,
"meta.annotation_type": types.SpanAnnotationTypeUnknown,
"meta.annotation_type": types.SpanTypeUnknown,
"meta.refinery.root": false,
"meta.refinery.span_data_size": 175,
},
Expand Down
Loading

0 comments on commit 178f1ce

Please sign in to comment.