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

Upgrade OpenTelemetry #3675

Merged
merged 6 commits into from
Jun 26, 2022
Merged

Upgrade OpenTelemetry #3675

merged 6 commits into from
Jun 26, 2022

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Apr 3, 2022

Signed-off-by: Antoine Toulme antoine@lunar-ocean.com

PR description

Upgrades OpenTelemetry to the latest version, and make sure we configure the SDK with environment variables.

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

@atoulme atoulme force-pushed the upgrade_otel2 branch 3 times, most recently from ac7f0bb to 00debed Compare April 4, 2022 06:02
@macfarla
Copy link
Contributor

macfarla commented Apr 4, 2022

@atoulme - missing SPDX header

Files without headers: /home/circleci/project/metrics/core/src/main/java/org/hyperledger/besu/metrics/opentelemetry/DebugMetricReader.java

@atoulme atoulme force-pushed the upgrade_otel2 branch 2 times, most recently from 81a9988 to 0e189f7 Compare April 7, 2022 22:02
@sonarcloud
Copy link

sonarcloud bot commented Apr 7, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

63.5% 63.5% Coverage
0.0% 0.0% Duplication

@macfarla
Copy link
Contributor

macfarla commented Jun 3, 2022

@atoulme there's still some ATs failing on this one

@atoulme
Copy link
Contributor Author

atoulme commented Jun 23, 2022

Sorry, long time. I got back and fixed the AT locally, let's see it.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
atoulme and others added 5 commits June 22, 2022 17:50
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
@atoulme atoulme enabled auto-merge (squash) June 26, 2022 22:38
@atoulme atoulme merged commit 78717ad into hyperledger:main Jun 26, 2022
macfarla added a commit to macfarla/besu that referenced this pull request Jun 29, 2022
This reverts commit 78717ad.

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
macfarla added a commit that referenced this pull request Jun 30, 2022
This reverts commit 78717ad.

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
atoulme added a commit to atoulme/besu that referenced this pull request Jul 8, 2022
atoulme added a commit to atoulme/besu that referenced this pull request Jul 8, 2022
…r#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
atoulme added a commit to atoulme/besu that referenced this pull request Jul 8, 2022
…r#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
atoulme added a commit to atoulme/besu that referenced this pull request Nov 2, 2022
…r#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
atoulme added a commit to atoulme/besu that referenced this pull request Nov 14, 2022
…r#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
atoulme added a commit that referenced this pull request Nov 14, 2022
* Revert "Revert "Upgrade OpenTelemetry (#3675)" (#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Make sure we don't initialize the OpenTelemetry global singleton by mistake

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* disable global otel singleton explicitly

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* make sure to set GlobalOpenTelemetry at most once to avoid test failures

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* reset for tests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* fix changelog

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
wcgcyx pushed a commit to wcgcyx/besu that referenced this pull request Nov 16, 2022
* Revert "Revert "Upgrade OpenTelemetry (hyperledger#3675)" (hyperledger#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Make sure we don't initialize the OpenTelemetry global singleton by mistake

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* disable global otel singleton explicitly

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* make sure to set GlobalOpenTelemetry at most once to avoid test failures

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* reset for tests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* fix changelog

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Signed-off-by: wcgcyx <wcgcyx@gmail.com>
macfarla pushed a commit to macfarla/besu that referenced this pull request Jan 10, 2023
* Revert "Revert "Upgrade OpenTelemetry (hyperledger#3675)" (hyperledger#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Make sure we don't initialize the OpenTelemetry global singleton by mistake

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* disable global otel singleton explicitly

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* make sure to set GlobalOpenTelemetry at most once to avoid test failures

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* reset for tests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* fix changelog

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* Upgrade OpenTelemetry

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* remove a single sleep, poll with a for loop instead

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* use the new approach to send trace requests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
This reverts commit 78717ad.

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* Revert "Revert "Upgrade OpenTelemetry (hyperledger#3675)" (hyperledger#4031)"

This reverts commit 17de636.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Make sure we don't initialize the OpenTelemetry global singleton by mistake

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* disable global otel singleton explicitly

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* make sure to set GlobalOpenTelemetry at most once to avoid test failures

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* reset for tests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* fix changelog

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
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.

3 participants