Skip to content

Commit

Permalink
Merge branch 'open-telemetry:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
eduojeda authored Jun 2, 2023
2 parents 65b8f0c + cd9c1f0 commit 8cc2fa6
Show file tree
Hide file tree
Showing 509 changed files with 6,512 additions and 6,141 deletions.
20 changes: 20 additions & 0 deletions .chloggen/fix-trace-data-loss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: servicegraphprocessor

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: consume traces even metric count is equal to 0

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23028]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
20 changes: 20 additions & 0 deletions .chloggen/httpcheck-default-collection-interval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: httpcheckreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Update default collection interval to match documented value

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23019]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
20 changes: 20 additions & 0 deletions .chloggen/httpcheck-endpoint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: 'breaking'

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: receiver/httpcheck

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Removed the default `endpoint` value of `http://localhost:80`. The `endpoint` property is now required.

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [22995]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
53 changes: 53 additions & 0 deletions .chloggen/msg_add-scrape-interval-changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: 'enhancement'

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: receivers

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Adding `initial_delay` to receivers to control when scraping interval starts

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23030]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: |
The updated receivers are:
- `active_directory_ds`
- `aerospike`
- `apache`
- `apachespark`
- `azuremonitor`
- `couchdb`
- `chrony`
- `docker_stats`
- `elasticsearch`
- `expvar`
- `filestats`
- `flinkmetrics`
- `googlecloudspanner`
- `haproxy`
- `httpcheck`
- `iis`
- `memcached`
- `mongodb`
- `mysql`
- `nginx`
- `oracledb`
- `podman_stats`
- `postgresql`
- `rabbitmq`
- `riak`
- `snowflake`
- `sqlquery`
- `sqlserver`
- `sshcheck`
- `vcenter`
- `windowsperfcounters`
- `zookeeper`
20 changes: 20 additions & 0 deletions .chloggen/msg_revert-default-apache-receiver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: apache receiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: reverted default collection time back to 10s from 1m

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23030]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
20 changes: 20 additions & 0 deletions .chloggen/postgres-int-race.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: postgresqlreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Fix race condition when capturing errors from multiple requests simultaneously

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23026]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
22 changes: 22 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,16 @@ jobs:
path: ~/.cache/go-build
key: go-test-build-${{ runner.os }}-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
- name: Run Unit Tests
if: ${{ matrix.go-version == '1.19' }}
run: make gotest GROUP=${{ matrix.group }}
- name: Run Unit Tests With Coverage
if: ${{ matrix.go-version == '1.20' }} # only run coverage on one version
run: make gotest-with-cover GROUP=${{ matrix.group }}
- uses: actions/upload-artifact@v3
if: ${{ matrix.go-version == '1.20' }} # only run coverage on one version
with:
name: coverage-artifacts
path: ${{ matrix.group }}-coverage.txt
unittest:
if: ${{ github.actor != 'dependabot[bot]' && always() }}
strategy:
Expand All @@ -274,6 +283,19 @@ jobs:
echo "One or more matrix jobs failed."
false
fi
coverage:
runs-on: ubuntu-latest
needs: [unittest]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: coverage-artifacts
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true

integration-tests:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ dist/
*.DS_Store

# Coverage
coverage.txt
integration-coverage.txt
coverage.html
coverage/*
*-coverage.txt
integration-coverage.html

# Wix
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ all-common:
e2e-test: otelcontribcol oteltestbedcol
$(MAKE) -C testbed run-tests

.PHONY: unit-tests-with-cover
unit-tests-with-cover:
@echo Verifying that all packages have test files to count in coverage
@internal/buildscripts/check-test-files.sh $(subst github.com/open-telemetry/opentelemetry-collector-contrib/,./,$(ALL_PKGS))
@$(MAKE) $(FOR_GROUP_TARGET) TARGET="do-unit-tests-with-cover"

TARGET="do-integration-tests-with-cover"
.PHONY: integration-tests-with-cover
integration-tests-with-cover: $(INTEGRATION_MODS)
Expand All @@ -101,6 +95,11 @@ gomoddownload:
gotest:
$(MAKE) $(FOR_GROUP_TARGET) TARGET="test"

.PHONY: gotest-with-cover
gotest-with-cover:
@$(MAKE) $(FOR_GROUP_TARGET) TARGET="test-with-cover"
$(GOCMD) tool covdata textfmt -i=./coverage/unit -o ./$(GROUP)-coverage.txt

.PHONY: gofmt
gofmt:
$(MAKE) $(FOR_GROUP_TARGET) TARGET="fmt"
Expand Down Expand Up @@ -385,6 +384,7 @@ clean:
@echo "Removing coverage files"
find . -type f -name 'coverage.txt' -delete
find . -type f -name 'coverage.html' -delete
find . -type f -name 'coverage.out' -delete
find . -type f -name 'integration-coverage.txt' -delete
find . -type f -name 'integration-coverage.html' -delete

Expand Down
7 changes: 6 additions & 1 deletion Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ common: lint
.PHONY: test
test:
$(GOTEST) $(GOTEST_OPT) ./...


.PHONY: test-with-cover
test-with-cover:
mkdir -p $(PWD)/coverage/unit
$(GOTEST) -cover ./... -covermode=atomic -args -test.gocoverdir="$(PWD)/coverage/unit"

.PHONY: do-unit-tests-with-cover
do-unit-tests-with-cover:
@echo "running $(GOCMD) unit test ./... + coverage in `pwd`"
Expand Down
42 changes: 21 additions & 21 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ require (
github.com/google/uuid v1.3.0
github.com/open-telemetry/opentelemetry-collector-contrib v0.78.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver v0.78.0
github.com/stretchr/testify v1.8.3
go.opentelemetry.io/collector v0.78.3-0.20230525165144-87dd85a6c034
go.opentelemetry.io/collector/component v0.78.3-0.20230525165144-87dd85a6c034
go.opentelemetry.io/collector/receiver/otlpreceiver v0.78.3-0.20230525165144-87dd85a6c034
github.com/stretchr/testify v1.8.4
go.opentelemetry.io/collector v0.78.3-0.20230601234953-deffd4892002
go.opentelemetry.io/collector/component v0.78.3-0.20230601234953-deffd4892002
go.opentelemetry.io/collector/receiver/otlpreceiver v0.78.3-0.20230601234953-deffd4892002
golang.org/x/mod v0.10.0
golang.org/x/text v0.9.0
gopkg.in/yaml.v2 v2.4.0
Expand Down Expand Up @@ -203,8 +203,8 @@ require (
github.com/samber/lo v1.37.0 // indirect
github.com/shoenig/go-m1cpu v0.1.5 // indirect
github.com/signalfx/signalfx-agent/pkg/apm v0.0.0-20230214151822-6a6813cf5bf1 // indirect
go.opentelemetry.io/collector/exporter v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/receiver v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/exporter v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/receiver v0.78.3-0.20230601234953-deffd4892002 // indirect
)

require (
Expand Down Expand Up @@ -596,24 +596,24 @@ require (
go.mongodb.org/atlas v0.28.0 // indirect
go.mongodb.org/mongo-driver v1.11.4 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/collector/confmap v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/consumer v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/exporter/loggingexporter v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/exporter/otlpexporter v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/extension/ballastextension v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/extension/zpagesextension v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/featuregate v1.0.0-rcv0012.0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/pdata v1.0.0-rcv0012.0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/processor/batchprocessor v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/semconv v0.78.3-0.20230525165144-87dd85a6c034 // indirect
go.opentelemetry.io/collector/confmap v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/consumer v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/exporter/loggingexporter v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/exporter/otlpexporter v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/extension/ballastextension v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/extension/zpagesextension v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/featuregate v1.0.0-rcv0012.0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/pdata v1.0.0-rcv0012.0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/processor/batchprocessor v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/collector/semconv v0.78.3-0.20230601234953-deffd4892002 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0 // indirect
go.opentelemetry.io/contrib/propagators/b3 v1.16.1 // indirect
go.opentelemetry.io/contrib/zpages v0.41.1 // indirect
go.opentelemetry.io/contrib/propagators/b3 v1.17.0 // indirect
go.opentelemetry.io/contrib/zpages v0.42.0 // indirect
go.opentelemetry.io/otel v1.16.0 // indirect
go.opentelemetry.io/otel/bridge/opencensus v0.38.1 // indirect
go.opentelemetry.io/otel/bridge/opencensus v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.39.0 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
go.opentelemetry.io/otel/sdk v1.16.0 // indirect
Expand Down
Loading

0 comments on commit 8cc2fa6

Please sign in to comment.