-
Notifications
You must be signed in to change notification settings - Fork 118
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
trace: replace zipkin with uptrace #330
Conversation
@patrick-ogrady I face one problem when enabling tracing Except this data is loaded in uptrace as expected. |
examples/morpheusvm/config/config.go
Outdated
@@ -35,6 +35,7 @@ type Config struct { | |||
// Tracing | |||
TraceEnabled bool `json:"traceEnabled"` | |||
TraceSampleRate float64 `json:"traceSampleRate"` | |||
DSN string `json:"dsn"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To confirm, this is provided by Uptrace on startup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is provided by the running uptrace.
It contains a secret to communicate with uptrace, is it safe to use it in this config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can set the default value (like I did in my patch).
Hmmm. Let me look rq. |
I just had to do this diff (run |
The next iteration here will also be adding the prometheus metrics ingestion to this tool ❤️ |
@patrick-ogrady the data is loaded in your uptrace but you confirm that the I will add prometheus in the same PR. |
What do you see? |
@patrick-ogrady I see this: |
🤔 definitely seems like a new bug. This would happen if the calculation for how many times to call build block (based on the fee and any balance is wrong): hypersdk/examples/morpheusvm/tests/load/load_test.go Lines 373 to 381 in 1eb7836
This is some of the "jankier" logic in the codebase and think it could be cleaned up quite a bit. |
But it works on your side 😩 . 4090 * 110 + 231 = 450 131 txs 50 000 tx have been lost. Is it possible they got removed due to some logic? |
@patrick-ogrady I wanted to generate prometheus config to export metrics from prometheus into Uptrace using So ready to be reviewed |
trace/tracer.go
Outdated
attribute.String("version", config.Version), | ||
semconv.ServiceNameKey.String(config.Agent), | ||
), | ||
uptrace.ConfigureOpentelemetry( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering why we import uptrace
at all instead of just passing a header into the sdktrace
options below like AvalancheGo: ava-labs/avalanchego#1727
The appeal there is that we can just use the stock OpenTelemetry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the process, we should just migrate to use this package (we don't need a separate trace
package anymore because uptrace
can use opentelemtry directly ❤️ ): https://github.com/ava-labs/avalanchego/blob/master/trace/tracer.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trace package has been updated. If you want to use trace
package from avalanchego we need to update avalanchego to pass AppName
and Version
from the Config. Then we can use it from hypersdk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would be a good change. Can you open an issue for that? We can probably merge that quickly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should try to do so (use the trace
package upstream)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works 👍
Signed-off-by: Nathan Haim <haim.nathan@icloud.com>
@patrick-ogrady issue has been open avalanchego side and PR (ava-labs/avalanchego#1893) |
This PR has become stale because it has been open for 30 days with no activity. Adding the |
Bumping this on the platform side |
This PR has become stale because it has been open for 30 days with no activity. Adding the |
is it still relevant? The PR is old and there is a lot of conflicts. |
Related to #230