Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Removes standalone agent functionality, and prepares the new repo for…
Browse files Browse the repository at this point in the history
… its first release. (#10)

* Remove standalone agent functionality and complex output operators. Simplify module structure and prepare for initial release.
  • Loading branch information
djaglowski authored Feb 2, 2021
1 parent e7099ee commit 7d6eb19
Show file tree
Hide file tree
Showing 179 changed files with 325 additions and 11,390 deletions.
35 changes: 1 addition & 34 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,48 +45,15 @@ lint:
golangci-lint run ./...

.PHONY: vet
vet: check-missing-modules
vet:
GOOS=darwin $(MAKE) for-all CMD="go vet ./..."
GOOS=linux $(MAKE) for-all CMD="go vet ./..."
GOOS=windows $(MAKE) for-all CMD="go vet ./..."

.PHONY: check-missing-modules
check-missing-modules:
@find ./operator/builtin -type f -name "go.mod" -exec dirname {} \; | cut -d'/' -f2- | while read mod ; do \
grep $$mod ./cmd/stanza/init_*.go > /dev/null ;\
if [ $$? -ne 0 ] ; then \
echo Stanza is not building with module $$mod ;\
exit 1 ;\
fi \
done

.PHONY: generate
generate:
go generate ./...

.PHONY: build
build:
(cd ./cmd/stanza && CGO_ENABLED=0 go build -o ../../artifacts/stanza_$(GOOS)_$(GOARCH) .)

.PHONY: install
install:
(cd ./cmd/stanza && CGO_ENABLED=0 go install .)

.PHONY: build-all
build-all: build-darwin-amd64 build-linux-amd64 build-windows-amd64

.PHONY: build-darwin-amd64
build-darwin-amd64:
@GOOS=darwin GOARCH=amd64 $(MAKE) build

.PHONY: build-linux-amd64
build-linux-amd64:
@GOOS=linux GOARCH=amd64 $(MAKE) build

.PHONY: build-windows-amd64
build-windows-amd64:
@GOOS=windows GOARCH=amd64 $(MAKE) build

.PHONY: for-all
for-all:
@set -e; for dir in $(ALL_MODULES); do \
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@

This project was originally developed by [observIQ](https://observiq.com/) under the name [Stanza](https://github.com/observIQ/stanza). It has been contributed to the OpenTelemetry project in order to accelerate development of the collector's log collection capabilities.

**Note** This repository is not currently stable and likely undergo significant changes in the near term.

## Quick Start

Want to get started right away? Check out our [Quick Start Guide](./docs/README.md)!

**Note** This repository is not currently stable and likely will undergo significant changes in the near term.

## Community

Expand All @@ -18,7 +13,6 @@ Stanza is an open source project. If you'd like to contribute, take a look at th

Stanza follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).


## Other questions?

Check out our [FAQ](/docs/faq.md), or open an issue with your question. We'd love to hear from you.
4 changes: 2 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package agent
import (
"sync"

"github.com/opentelemetry/opentelemetry-log-collection/database"
"github.com/opentelemetry/opentelemetry-log-collection/pipeline"
"github.com/open-telemetry/opentelemetry-log-collection/database"
"github.com/open-telemetry/opentelemetry-log-collection/pipeline"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"testing"

"github.com/opentelemetry/opentelemetry-log-collection/testutil"
"github.com/open-telemetry/opentelemetry-log-collection/testutil"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
Expand Down
8 changes: 4 additions & 4 deletions agent/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ package agent
import (
"time"

"github.com/opentelemetry/opentelemetry-log-collection/database"
"github.com/opentelemetry/opentelemetry-log-collection/errors"
"github.com/opentelemetry/opentelemetry-log-collection/operator"
"github.com/opentelemetry/opentelemetry-log-collection/plugin"
"github.com/open-telemetry/opentelemetry-log-collection/database"
"github.com/open-telemetry/opentelemetry-log-collection/errors"
"github.com/open-telemetry/opentelemetry-log-collection/operator"
"github.com/open-telemetry/opentelemetry-log-collection/plugin"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down
2 changes: 1 addition & 1 deletion agent/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"path/filepath"
"testing"

"github.com/opentelemetry/opentelemetry-log-collection/testutil"
"github.com/open-telemetry/opentelemetry-log-collection/testutil"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
Expand Down
2 changes: 1 addition & 1 deletion agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"io/ioutil"
"path/filepath"

"github.com/opentelemetry/opentelemetry-log-collection/pipeline"
"github.com/open-telemetry/opentelemetry-log-collection/pipeline"
yaml "gopkg.in/yaml.v2"
)

Expand Down
8 changes: 4 additions & 4 deletions agent/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"path/filepath"
"testing"

"github.com/opentelemetry/opentelemetry-log-collection/operator"
_ "github.com/opentelemetry/opentelemetry-log-collection/operator/builtin/transformer/noop"
"github.com/opentelemetry/opentelemetry-log-collection/pipeline"
"github.com/opentelemetry/opentelemetry-log-collection/testutil"
"github.com/open-telemetry/opentelemetry-log-collection/operator"
_ "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/transformer/noop"
"github.com/open-telemetry/opentelemetry-log-collection/pipeline"
"github.com/open-telemetry/opentelemetry-log-collection/testutil"
"github.com/stretchr/testify/require"
)

Expand Down
61 changes: 0 additions & 61 deletions cmd/stanza/default_paths.go

This file was deleted.

148 changes: 0 additions & 148 deletions cmd/stanza/example_test.go

This file was deleted.

38 changes: 0 additions & 38 deletions cmd/stanza/go.mod

This file was deleted.

Loading

0 comments on commit 7d6eb19

Please sign in to comment.