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

[Tracing] Skeleton for alternative opentelemetry collector. #11092

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robin-near
Copy link
Contributor

This can function as an alternative collector that neard can send tracing spans to. It works. We just need to figure out how to store this data next.

@robin-near robin-near requested a review from a team as a code owner April 17, 2024 04:17
Copy link

codecov bot commented Apr 17, 2024

Codecov Report

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

Project coverage is 71.10%. Comparing base (7cc6b31) to head (cd0fcaf).
Report is 1 commits behind head on master.

Files Patch % Lines
tracing/src/collector.rs 0.00% 12 Missing ⚠️
tracing/src/main.rs 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11092      +/-   ##
==========================================
- Coverage   71.10%   71.10%   -0.01%     
==========================================
  Files         763      766       +3     
  Lines      153166   153153      -13     
  Branches   153166   153153      -13     
==========================================
- Hits       108906   108893      -13     
+ Misses      39828    39826       -2     
- Partials     4432     4434       +2     
Flag Coverage Δ
backward-compatibility 0.24% <ø> (+<0.01%) ⬆️
db-migration 0.24% <ø> (+<0.01%) ⬆️
genesis-check 1.43% <ø> (+<0.01%) ⬆️
integration-tests 36.83% <0.00%> (+0.06%) ⬆️
linux 69.52% <0.00%> (+<0.01%) ⬆️
linux-nightly 70.58% <0.00%> (+0.03%) ⬆️
macos 54.26% <0.00%> (+<0.01%) ⬆️
pytests 1.66% <ø> (+<0.01%) ⬆️
sanity-checks 1.44% <ø> (+<0.01%) ⬆️
unittests 66.79% <0.00%> (+0.01%) ⬆️
upgradability 0.29% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Collaborator

@akhi3030 akhi3030 left a comment

Choose a reason for hiding this comment

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

approving to unblock.


pub struct Collector {}

impl Collector {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add some comment about context, eg. how/where this will be used?

@@ -0,0 +1,20 @@
[package]
name = "near-tracing"
Copy link
Collaborator

@nagisa nagisa Apr 22, 2024

Choose a reason for hiding this comment

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

We already got o11y, is there a good reason to introduce a separate crate if o11y would end up depending on this anyway?

(not that it matters much either way...)

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.

None yet

4 participants