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

Failed to run when there is no RPC server #1937

Closed
moreal opened this issue Mar 16, 2023 · 0 comments · Fixed by #1938
Closed

Failed to run when there is no RPC server #1937

moreal opened this issue Mar 16, 2023 · 0 comments · Fixed by #1938
Assignees
Labels
bug Something isn't working

Comments

@moreal
Copy link
Contributor

moreal commented Mar 16, 2023

Summary

Unexpected exception occurred during Run. System.InvalidOperationException: No service for type 'OpenTelemetry.Metrics.MeterProvider' has been registered.

It is because it calls AddMeters() in only HostBuilderExtensions.UseNineChroniclesRPC() but it always calls UseOpenTelemetryPrometheusScrapingEndpoint(). So I'll make the Program.Run always calls AddMeters().

@moreal moreal added the bug Something isn't working label Mar 16, 2023
@moreal moreal self-assigned this Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant