chore: VCAP_SERVICES_FILE_PATH compatibility using greedy matchers#407
Open
PDT42 wants to merge 17 commits into
Open
chore: VCAP_SERVICES_FILE_PATH compatibility using greedy matchers#407PDT42 wants to merge 17 commits into
PDT42 wants to merge 17 commits into
Conversation
sjvans
reviewed
Jun 22, 2026
sjvans
reviewed
Jun 22, 2026
Co-authored-by: sjvans <30337871+sjvans@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
The PR makes good improvements — error messages are more actionable, matching predicates are extended via vcap arrays, and comments are clearer. The one substantive issue is that the silent match on the deprecated "cloud-logging" tag in getCredsForCLSAsUPS() is inconsistent with the PR's stated intent to promote "Cloud Logging" as the sole required tag; it should emit the same deprecation warning as the name-based fallback.
PR Bot Information
Version: 1.26.5
- File Content Strategy: Full file content
- LLM:
anthropic--claude-4.6-sonnet - Event Trigger:
pull_request.ready_for_review - Correlation ID:
957f0e1c-6868-4b5a-9282-5da4a9e4f2b7
sjvans
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve
VCAP_SERVICESService Binding Resolution with Greedy MatchersChore
🔧 Updated service instance matching for SAP Cloud Logging and Dynatrace to use greedy (array-based) VCAP matchers, extending the default matching without breaking existing behavior. Error messages and documentation have been updated to guide users toward the correct configuration.
Changes
package.json: Updatedvcapmatching fortelemetry-to-dynatraceandtelemetry-to-cloud-loggingfrom a single object to an array of matchers. Dynatrace now matches bylabel: "dynatrace"ortag: "dynatrace"; Cloud Logging matches bylabel: "cloud-logging"ortag: "Cloud Logging".lib/utils.js: Improved inline comments to clearly document the legacy compatibility behavior forgetCredsForDTAsUPS()andgetCredsForCLSAsUPS(). Updated the warning message for Cloud Logging user-provided services to recommend only the"Cloud Logging"tag (dropped"cloud-logging"from the recommendation).lib/logging/index.js,lib/metrics/index.js,lib/tracing/index.js: Improved error messages when credentials are not found — now explicitly instruct users to ensure the bound service instance uses the correct tag ("Cloud Logging"or"dynatrace").README.md: Clarified that user-provided service instances for SAP Cloud Logging must use the tag"Cloud Logging"(removed reference to the legacycloud-loggingtag). Added a tip with thecf update-user-provided-servicecommand and a link to CAP's service binding documentation.PR Bot Information
Version:
1.26.581bbd7c7-2290-4812-89e9-d178ac318c25issue_comment.edited