Skip to content

Commit

Permalink
Fix adjusted count ottlfunc def
Browse files Browse the repository at this point in the history
  • Loading branch information
lahsivjar committed Nov 28, 2024
1 parent 04790c0 commit e500b80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ottl/ottlfuncs/func_adjusted_count.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/sampling"
)

func NewAdjustedCountFactory[K any]() ottl.Factory[ottlspan.TransformContext] {
func NewAdjustedCountFactory() ottl.Factory[ottlspan.TransformContext] {
return ottl.NewFactory("AdjustedCount", nil, createAdjustedCountFunction)
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/ottl/ottlfuncs/func_adjusted_count_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ package ottlfuncs // import "github.com/open-telemetry/opentelemetry-collector-c
import (
"testing"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlspan"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/ptrace"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlspan"
)

func Test_AdjustedCount(t *testing.T) {
Expand Down

0 comments on commit e500b80

Please sign in to comment.