diff --git a/pdata/internal/cmd/pdatagen/internal/packages.go b/pdata/internal/cmd/pdatagen/internal/packages.go index b8c7fab272a..f44b597708a 100644 --- a/pdata/internal/cmd/pdatagen/internal/packages.go +++ b/pdata/internal/cmd/pdatagen/internal/packages.go @@ -119,6 +119,9 @@ func (p *Package) GenerateInternalFiles() error { // Add imports sb.WriteString("import (" + newLine) for _, imp := range p.imports { + if imp == `"go.opentelemetry.io/collector/pdata/internal"` { + continue + } if imp != "" { sb.WriteString("\t" + imp + newLine) } else {