Skip to content

Commit

Permalink
Update test for intrinsic
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Leslie <[email protected]>
  • Loading branch information
zalegrala committed Apr 6, 2023
1 parent 01eb773 commit bf1a64f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/generator/processor/spanmetrics/spanmetrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"math"
"os"
"strconv"
"testing"

Expand All @@ -29,6 +30,8 @@ func TestSpanMetrics(t *testing.T) {
p := New(cfg, testRegistry)
defer p.Shutdown(context.Background())

require.Equal(t, p.Name(), "span-metrics")

// TODO give these spans some duration so we can verify latencies are recorded correctly, in fact we should also test with various span names etc.
batch := test.MakeBatch(10, nil)

Expand Down Expand Up @@ -490,6 +493,7 @@ func TestSpanMetrics_policyMatchIntrinsicAttrs(t *testing.T) {
Status: &trace_v1.Status{
Code: trace_v1.Status_STATUS_CODE_OK,
},
Name: "goodiegoodie",
},
},
}
Expand Down

0 comments on commit bf1a64f

Please sign in to comment.