* Save http status in the outermost span
Co-authored-by: Federico Paolinelli <fedepaol@gmail.com>
* Use ochttp to use span status and store http status code as a tag
* Make the conditional oneliner
* cleanup tests and change minio port
* fix cleanup
* cleanup
* fix config test
* add comment to travis
* revert to generic minio addr
* fix test
* switch to test config
* adapt timeouts
* use example config
* fix test... again
* add new lines
* merge list from storage with the one from go list
* fix and rename
* move stuff to semver pkg
* fix gofmt
* move union out of semver pkg
* add tests
* fix err msg
* fix tests
* error handling
* error handling, go list refactoring
* fix list
* cleanup
* fix gofmt
* switch proxy to config file
pull in single flight changes
* changes for single-flight
* intermediate stage. All tests passing. pkg still has env refs
* remove all env references
* delete config/env entirely
* fix failing tests
* create the config.toml file as part of dev setup
* create config file only if it doesn't exist
* update Dockerfiles to use config file
* move composing elements to the top
* verbose parameter naming
* newline
* add flag for config file path
* update docs with config file flag
* remove unnecessary nil check
* use filepath.join
* rename redis port to address
* fix path.join
* fix issues after merge
* add vendor dir
* Initial chanages for observability
* Fix some panics to start testing
* Export tracing properly
* First example of child spans using opencensus
* Add spans to download protocol
* Add url to traces
* Remove opentracing
* Remove gopkg.* files
* Start deprecating opentracing
* Resolve stupid build errors
* Use observability package
* Fix test errors
* Convert buffalo spans to observercontext
* change package name
* defer flush to the end of the app execution
* Change op names to the correct package
* Rename pkg/observability to pkg/observ
* Show traces for the package
* Keep tracing in the earlier way
* Add info from request headers
* Remove whitespace
* Move exporter url to env var
* Add to env file for documentation
* Remove opentracing stuff
* Use stdlib
* Shorten service name
* Add a service name to olympus as well
* Add test to test if there is a recursion or not
* Add Ops Suite
* Move around code
* Make sure the service is not instantiated if the exporter is not found
* pkg/module: Remove unused file parser.go
PR #618 removed the last remaining user of the functions/types defined
in parser.go
* go.mod: update
The last user of github.com/sabhiram/go-gitignore was removed. Run 'go
mod tidy' to remove the dependency.
* vendor: remove unused dependency
The last user of github.com/sabhiram/go-gitignore was removed. Remove
the vendored copy as well by running 'go mod vendor'.
* complete updated config package
* use envconfig+toml instead of viper. Add descriptions in example config file
* add unit tests
* debug gofmt on build server
* force dummy commit
* skip gofmt to validate other tests are passing
* unset env vars for example file parsing test
* cleanup tests
* test improvements
* re-enable gofmt
* naming
* PR comments
* fix failing test after olympus default endpoint change
* remove rdbms config
* set defaults in code
* add support for proxyfilteroff
* add basic auth params
* update gopkg.lock
* undo gopkg.lock changes made during merge
* remove defaults
* explicitly specify all env variables
* remove rdbms from example
* remove user and pass to disable basic auth by default
* switch to memory by default for the proxy
* fix tests after config file change
* Set a default value for ATHENS_MONGO_CONNECTION_STRING env var
- ATHENS_MONGO_CONNECTION_STRING will default to mongodb://127.0.0.1:27017 if not set
* Fix Get function call
* Update user of env.MongoConnectionString
* The commit brings error check for storage exists
The commit opened against ticket #427, and adds error response to
checker exists method and all corresponding places. The major changes related to renaming and processing of additional errors, because the signature of Checker.Exists was changed to return error in response.
* improved error processing
* go fmt'ed files
* added check to minio storage for no key error
* moved our constant + changed check for err
* go fmt'ed
* deleted rdbms packege, which brought merge with upsteam
* process error from minio checker
* Inital removal of cdn rdbms driver and pop support from olympus
* Update travis and other unit test scripts
* Remove postgres from Makefile
* Update comments and remove function that is not required
* Update .env file
* clean commented code
* Update docs to remove references to rdbms
* Remove pop and run dep ensure to make sure that the tests pass without pop
* Keeping GO_ENV=test for parametter logging
* Remove pop from models for now
* Remove rdbms storage from pkg/storage
* Completely remove pop
* Some improvements to tests
- Not sourcing from cmd/proxy/.env, because that doesn't export any variables
- Removing mysql support (I feel like 1 database is enough)
- Pruning networks on teardown
I'm happy to split these changes up into separate PRs - it's the end of the day for me so I wanted to get everything in 😄
* update to point to test instance
* Update databasy.yml for travis??
* Remove database.yml
* Do not use db migrations and creation
* Remove pop dependency from cdn
* add schema for olympus assuming cdn driver is part of olympus
* Move CI/CD and test scripts to point pop to olympus
* Update database.yml and keep it only for olympus
* Add migrations to travis
* Add debug logs to see what travis is doing
* Update travis to use olympus database.yml
* Moarrrr logs to see where travis is pointint the db towards
* Change env to test
* Use test as the default environment if not specified otherwise
* Check if test new rdbms storage succeeds
* Try to see which connection string rdbms test suite is using on travis
* Update db tags for cdn driver
* create db by using travis go_env
* Remove sql from database config as it is removed from docker-compose
* Remove extra logs that I missed
* Add newline
* remove models.go and test file from proxy
* removing extraneous network prune from Makefile
* The proxy middleware calls an hook if set to check if the module needs
to be filtered
* Fixed error handling
* Added a middleware func that passes the log entry down to other
middlewares
* Split the filter middleware in two
* Moved validation middleware in its own file
* Renamed filter to middleware, all the middleware stuff in a single file
* Moved default hook to empty string
* Split tests of filter middleware from validation middleware
* Installed the validation middleware only if the hook is set
* Moved filter test to middleware test
* Fixed gofmt issue caused by manual merge
* Fixed wrong logrus import
* Removed logger from filter middleware
* Moved middleware functions to own package
* Removed unused argument, fixed errors
* Fixed gofmt errors
* Made middleware func private
* Changed debuglevel from string to enum
* Added comments to now public functions
* Changed module alias to a shorter one
* Removed white space
* Split middleware in separate files, injected the hook as param
* Removed commented code
* Proxy: do not redirect on filter.Include
* Filter: add Off opt
* Filter: set Off to true when there's no config
* Proxy: use a global switch for filter