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

Register otel TracerProvider to send traces #5029

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

Warashi
Copy link
Contributor

@Warashi Warashi commented Jul 8, 2024

What this PR does / why we need it:

This PR implements the creation of otel TracerProvider and sets the created one as default.

Which issue(s) this PR fixes:

Part of #4977

Does this PR introduce a user-facing change?: No

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
@Warashi Warashi force-pushed the otel-trace-export-piped-tracer-exporter branch from 63f3b30 to 870ac16 Compare July 8, 2024 06:06
Copy link

codecov bot commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 37 lines in your changes missing coverage. Please review.

Project coverage is 22.44%. Comparing base (713fb03) to head (6fa8d94).
Report is 204 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/piped/cmd/piped/piped.go 0.00% 37 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5029      +/-   ##
==========================================
- Coverage   22.44%   22.44%   -0.01%     
==========================================
  Files         520      522       +2     
  Lines       56852    57064     +212     
==========================================
+ Hits        12762    12808      +46     
- Misses      43063    43227     +164     
- Partials     1027     1029       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@khanhtc1202
Copy link
Member

@Warashi There is an error on Snyk security check, could you check 🙏

@Warashi Warashi marked this pull request as draft July 12, 2024 00:37
@Warashi
Copy link
Contributor Author

Warashi commented Jul 12, 2024

Thank you. I'll check it later.

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
@Warashi Warashi force-pushed the otel-trace-export-piped-tracer-exporter branch from f6bf5dc to 6fa8d94 Compare July 17, 2024 06:49
@Warashi Warashi marked this pull request as ready for review July 17, 2024 06:53
Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 and just left the nit memo


return sdktrace.NewTracerProvider(
sdktrace.WithBatcher(otlpTraceExporter),
sdktrace.WithSampler(sdktrace.AlwaysSample()),
Copy link
Member

Choose a reason for hiding this comment

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

📝 It should be nice to describe that the traces are sampled on the doc when you write.

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Warashi Warashi merged commit f89dd9a into master Jul 29, 2024
17 of 18 checks passed
@Warashi Warashi deleted the otel-trace-export-piped-tracer-exporter branch July 29, 2024 00:12
This was referenced Jul 29, 2024
github-actions bot pushed a commit that referenced this pull request Aug 13, 2024
* Register otel TracerProvider to send traces

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

* Bump gRPC version

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

* Upgrade google.golang.org/grpc

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>
ffjlabo added a commit that referenced this pull request Aug 13, 2024
#5126 #5128 #5130 (#5132)

* Register otel TracerProvider to send traces (#5029)

* Register otel TracerProvider to send traces

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

* Bump gRPC version

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

* Upgrade google.golang.org/grpc

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Set fetch-depth to 0 to create correct patches during git cherry-pick as much as possible (#5096)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Bump github.com/docker/docker from 24.0.9+incompatible to 26.1.4+incompatible (#5097)

* Bump github.com/docker/docker

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.9+incompatible to 26.1.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](moby/moby@v24.0.9...v26.1.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Manually update docker/cli to pass the tests build errors

Signed-off-by: khanhtc1202 <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: khanhtc1202 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: khanhtc1202 <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Bump postcss from 7.0.39 to 8.4.40 in /docs (#5099)

Bumps [postcss](https://github.com/postcss/postcss) from 7.0.39 to 8.4.40.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@7.0.39...8.4.40)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: pipecd-bot <[email protected]>

* Use LRUCache for Application Manifests Cache (#5108)

* Use LRUCache for Application Manifests Cache

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

* Use not constant but config value

Co-authored-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Co-authored-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Fix UI dependecies deprecated (#5113)

Signed-off-by: khanhtc1202 <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Bump postcss and autoprefixer in /docs (#5114)

Bumps [postcss](https://github.com/postcss/postcss) to 8.4.40 and updates ancestor dependency [autoprefixer](https://github.com/postcss/autoprefixer). These dependencies need to be updated together.

Updates `postcss` from 7.0.39 to 8.4.40
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@7.0.39...8.4.40)

Updates `autoprefixer` from 9.8.8 to 10.4.20
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](postcss/autoprefixer@9.8.8...10.4.20)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
- dependency-name: autoprefixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: pipecd-bot <[email protected]>

* fix: upgrade google-protobuf from 3.21.0 to 3.21.4 (#5115)

Snyk has created this PR to upgrade google-protobuf from 3.21.0 to 3.21.4.

See this package in yarn:
google-protobuf

See this project in Snyk:
https://app.snyk.io/org/pipecd/project/f41c5767-b506-4f59-beb9-ef662258eb9a?utm_source=github&utm_medium=referral&page=upgrade-pr

Signed-off-by: t-kikuc <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* fix: upgrade react-markdown from 6.0.2 to 6.0.3 (#5116)

Snyk has created this PR to upgrade react-markdown from 6.0.2 to 6.0.3.

See this package in yarn:
react-markdown

See this project in Snyk:
https://app.snyk.io/org/pipecd/project/f41c5767-b506-4f59-beb9-ef662258eb9a?utm_source=github&utm_medium=referral&page=upgrade-pr

Signed-off-by: t-kikuc <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* fix: tool/actions-gh-release/Dockerfile to reduce vulnerabilities (#5118)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-7413532
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-7413532

Signed-off-by: khanhtc1202 <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* fix: upgrade dayjs from 1.8.28 to 1.11.12 (#5126)

Snyk has created this PR to upgrade dayjs from 1.8.28 to 1.11.12.

See this package in yarn:
dayjs

See this project in Snyk:
https://app.snyk.io/org/pipecd/project/f41c5767-b506-4f59-beb9-ef662258eb9a?utm_source=github&utm_medium=referral&page=upgrade-pr

Signed-off-by: t-kikuc <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Bump github.com/docker/docker (#5128)

Signed-off-by: pipecd-bot <[email protected]>

* Update RELEASE to v0.48.5 (#5130)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>
Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: khanhtc1202 <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Co-authored-by: Shinnosuke Sawada-Dazai <[email protected]>
Co-authored-by: Yoshiki Fujikane <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: khanhtc1202 <[email protected]>
Co-authored-by: Khanh Tran <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Chris Aniszczyk <[email protected]>
ffjlabo added a commit that referenced this pull request Aug 14, 2024
ffjlabo added a commit that referenced this pull request Aug 15, 2024
…5116 #51…"

This reverts commit b1d9cd0.

Signed-off-by: Yoshiki Fujikane <[email protected]>
ffjlabo added a commit that referenced this pull request Aug 15, 2024
…5116 #51…" (#5135)

This reverts commit b1d9cd0.

Signed-off-by: Yoshiki Fujikane <[email protected]>
@github-actions github-actions bot mentioned this pull request Aug 15, 2024
@github-actions github-actions bot mentioned this pull request Aug 26, 2024
This was referenced Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants