Skip to content

Commit

Permalink
Merge pull request #3627 from AmilaSamith/master
Browse files Browse the repository at this point in the history
Add fix for Prometheus Counter Metrics not getting updated
  • Loading branch information
AmilaSamith authored Sep 24, 2024
2 parents 4f347d3 + 27c9d1c commit 820a8c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private String getApiName(String contextPath, MessageContext synCtx) {
String apiName = null;
for (API api : synCtx.getEnvironment().getSynapseConfiguration().getAPIs()) {
String apiContextPath = api.getContext();
if (api.getVersionStrategy().getVersion() != null) {
if (StringUtils.isNotBlank(api.getVersionStrategy().getVersion())) {
apiContextPath = apiContextPath + "/" + api.getVersionStrategy().getVersion();
}
if (RESTUtils.matchApiPath(contextPath, apiContextPath)) {
Expand Down

0 comments on commit 820a8c3

Please sign in to comment.