Skip to content

Conversation

@aludwiko
Copy link
Contributor

@github-actions github-actions bot added documentation documentation related java-sdk labels Jan 13, 2026
Copy link
Contributor

@octonato octonato left a comment

Choose a reason for hiding this comment

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

Looking good, but Vale is complaining.

private static final Counter createdShoppingCarts = Counter.builder() // <1>
.name("shopping_cart_created_counter")
.help("Total shopping cart created")
.register();
Copy link
Contributor

Choose a reason for hiding this comment

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

You raise the question of using the static registry in https://github.com/lightbend/akka-runtime/issues/4664#issuecomment-3744130904

Is the static registry the same as the one that the runtime is using?

If we use the same registry, is there a risk that users could tamper with the runtime metrics? Such as deleting metrics, overwriting accidentally or on purpose?

Static things are typically problematic in tests, but perhaps this is not intended to be tested?

@ennru
Copy link
Contributor

ennru commented Jan 19, 2026

Instead of using the Prometheus API, we should switch to using the OpenTelemetry APIs. This would also enable users to include instrumentation for other libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation documentation related java-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants