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

Add bridge_app_version metric #362

Merged
merged 12 commits into from
Nov 4, 2021
Merged

Add bridge_app_version metric #362

merged 12 commits into from
Nov 4, 2021

Conversation

Half-Shot
Copy link
Contributor

This PR adds a bridge_app_version metric, which is already present in the IRC bridge (essentially this PR is upstreaming that code).

@Half-Shot Half-Shot requested a review from a team October 11, 2021 16:40
help: "Version number of the bridge",
labels: ["version"],
});
// This may change, so we need to refresh this.
Copy link
Contributor

Choose a reason for hiding this comment

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

This can change without the bridge restarting entirely??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's more that it's possible it may be set after this component has been loaded, .e.g. bridges that set the after loading metrics. Maybe it's leaning on the side of being too nice though, and we should make this immutable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed this to only check the value once, and just warn in the docs that you should set the version before instantiating the bridge.

return BridgeVersion;
}

console.log(getBridgeVersion("."));
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intentionally left in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I am a stupid.

@Half-Shot Half-Shot merged commit 7b4f1eb into develop Nov 4, 2021
@Half-Shot Half-Shot deleted the hs/version-metric branch May 2, 2023 16:06
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.

3 participants