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

Tutorial: View HyperSDK traces locally #1815

Open
RodrigoVillar opened this issue Nov 22, 2024 · 0 comments
Open

Tutorial: View HyperSDK traces locally #1815

RodrigoVillar opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@RodrigoVillar
Copy link
Contributor

This tutorial will show you how to view the OpenTelemetry traces from MorpheusVM.

Prerequisites

  • You'll need to use the remove-zipkin-exporter branch of HyperSDK
  • You'll need to use the RodrigoVillar:add-unmarshal-for-exportertype branch from here: https://github.com/RodrigoVillar/avalanchego
  • Docker
    • I used OrbStack, but you could probably use Docker Desktop as well

Steps

First, you'll need to enable tracing in MorpheusVM. In vm/config.go, set TraceConfig to the following:

TraceConfig: trace.Config{
			Enabled:         true,
			AppName:         "MorpheusVM",
			TraceSampleRate: 1.0,
			ExporterConfig: trace.ExporterConfig{
				Type:     trace.GRPC,
				Endpoint: "localhost:4317",
				Insecure: true,
			},
		},

Next, inside of MorpheusVM, start it up using ./scripts/run.sh. Next, start up jaeger using the following:

docker run -d --name jaeger -p 16686:16686 -p 4317:4317 jaegertracing/all-in-one:latest

Finally, head to http://localhost:16686/ where you should see the jaeger frontend. If all works well, you should be able to select MorpheusVM from the service dropdown

@RodrigoVillar RodrigoVillar added the documentation Improvements or additions to documentation label Nov 22, 2024
@RodrigoVillar RodrigoVillar self-assigned this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant