Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OTel dependency to v1.15.0-rc.1/v0.38.0-rc.1 #611

Closed
wants to merge 4 commits into from

Conversation

@zchee zchee requested a review from a team as a code owner March 10, 2023 04:49
@zchee zchee force-pushed the otel-2023-03-10 branch from aa5785a to e45bebf Compare March 10, 2023 04:55
@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #611 (2b301aa) into main (7589f5b) will increase coverage by 2.59%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##             main     #611      +/-   ##
==========================================
+ Coverage   63.55%   66.14%   +2.59%     
==========================================
  Files          38       36       -2     
  Lines        4409     4224     -185     
==========================================
- Hits         2802     2794       -8     
+ Misses       1483     1306     -177     
  Partials      124      124              
Impacted Files Coverage Δ
exporter/metric/option.go 64.70% <ø> (ø)
exporter/trace/trace_proto.go 65.00% <0.00%> (+0.26%) ⬆️
.../collector/integrationtest/testcases/conversion.go 76.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@zchee zchee force-pushed the otel-2023-03-10 branch from 7d9fff0 to 4c0af7b Compare March 10, 2023 05:08
@zchee
Copy link
Contributor Author

zchee commented Mar 10, 2023

@zchee
Copy link
Contributor Author

zchee commented Mar 10, 2023

Failed lint job because doesn't support current golangci-lint to go1.20. So update to v1.51.2.
Will squash Update golangci/golangci-lint to v1.51.2 for go1.20 and fix lint issues as well, if you accept drop go1.18.

@zchee zchee force-pushed the otel-2023-03-10 branch 2 times, most recently from 3c951d3 to 30e6ae4 Compare March 10, 2023 05:40
@damemi damemi self-assigned this Mar 10, 2023
@damemi
Copy link
Contributor

damemi commented Mar 10, 2023

/gcbrun

@zchee
Copy link
Contributor Author

zchee commented Mar 10, 2023

@damemi Seems passed all tests. Should I squash?

Comment on lines +188 to +192
STABLE_OTEL_VERSION=v1.15.0-rc.1
UNSTABLE_OTEL_VERSION=v0.38.0-rc.1
STABLE_CONTRIB_OTEL_VERSION=v1.16.0-rc.1
UNSTABLE_CONTRIB_OTEL_VERSION=v0.41.0-rc.1
STABLE_COLLECTOR_VERSION=v1.0.0-rc7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of bumping to rc tags now, would it be worth just waiting for the GA tags of each of these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damemi follow your opinion. However, I will continue to send PRs to follow upstream.

@@ -8,7 +8,7 @@ env:
# Path to where test results will be saved.
TEST_RESULTS: /tmp/test-results
# Default minimum version of Go to support.
DEFAULT_GO_VERSION: 1.19
DEFAULT_GO_VERSION: "1.20"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we update our go.mod files to 1.20 as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@zchee zchee force-pushed the otel-2023-03-10 branch from b8fce70 to 6de7055 Compare March 14, 2023 05:52
@zchee zchee requested a review from damemi March 14, 2023 05:53
@zchee
Copy link
Contributor Author

zchee commented Mar 14, 2023

@damemi PTAL

@@ -109,14 +109,13 @@ func main() {

// Add measurement once an every 10 second.
timer := time.NewTicker(10 * time.Second)
rng := rand.New(rand.NewSource(time.Now().UnixNano()))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint issue on go1.20

@zchee zchee force-pushed the otel-2023-03-10 branch from 6de7055 to b6a96c5 Compare March 14, 2023 06:04
@damemi
Copy link
Contributor

damemi commented Mar 15, 2023

/gcbrun

@zchee
Copy link
Contributor Author

zchee commented Mar 15, 2023

@damemi I'll fix conflicts

@damemi
Copy link
Contributor

damemi commented Mar 15, 2023

@damemi I'll fix conflicts

sorry @zchee, I caused those conflicts because I wanted to get at least 1 release published on go 1.19 before moving forward with this (instead of jumping from 1.18->1.20 in one release).

I'm still not sure about the rc tags, and would rather not publish a release based on those if possible. Are these updates urgent?

zchee added 4 commits March 16, 2023 11:54
Update each OTel dependency, and format go.mod.
Also, remove deprecated (removed) go.otel/metric/unit package
and unified semconv version with v1.18.0.

- go.opentelemetry.io/otel@v1.15.0-rc.1
- go.opentelemetry.io/otel/metric@v1.15.0-rc.1
- go.opentelemetry.io/otel/metric/instrument@v1.15.0-rc.1
- go.opentelemetry.io/otel/sdk@v1.15.0-rc.1
- go.opentelemetry.io/otel/sdk/export/metric@v0.38.0-rc.1
- go.opentelemetry.io/otel/sdk/metric@v0.38.0-rc.1
- go.opentelemetry.io/otel/trace@v1.15.0-rc.1
- go.opentelemetry.io/otel/exporters/prometheus@v0.38.0-rc.1
- go.opentelemetry.io/contrib/detectors/gcp@v1.16.0-rc.1
- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.41.0-rc.1
- go.opentelemetry.io/collector@v0.73.0
- go.opentelemetry.io/collector/featuregate@v0.73.0
- go.opentelemetry.io/collector/semconv@v0.73.0
- go.opentelemetry.io/collector/pdata@v1.0.0-rc7
- github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus@v0.73.0

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
@zchee zchee force-pushed the otel-2023-03-10 branch from b6a96c5 to 2b301aa Compare March 16, 2023 02:54
@zchee
Copy link
Contributor Author

zchee commented Mar 19, 2023

@damemi

sorry @zchee, I caused those conflicts because I wanted to get at least 1 release published on go 1.19 before moving forward with this (instead of jumping from 1.18->1.20 in one release).

np, that I also thought makes sense.

I'm still not sure about the rc tags, and would rather not publish a release based on those if possible. Are these updates urgent?

Okay, I agree.
So how about updating to the previous version of opentelemetry-go RC version (v1.14.0/v0.37.0/v0.0.4) and waiting for it to become GA? As far as the release notes of v1.14.0/v0.37.0/v0.0.4 are concerned, it seems reasonable as an upgrade while waiting for the GA release.
Like #616.

@zchee zchee changed the title Update OTel dependency Update OTel dependency to v1.15.0-rc.1/v0.38.0-rc.1 Mar 19, 2023
@damemi damemi closed this in #616 Mar 20, 2023
@zchee zchee deleted the otel-2023-03-10 branch March 20, 2023 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants