The SkyWalking Agent Framework causes an application to be automatically configured to work with a bound SkyWalking Service Note: This framework is disabled by default.
| Detection Criterion | Existence of a single bound SkyWalking service. The existence of an SkyWalking service defined by the VCAP_SERVICES payload containing a service name, label or tag with sky-walking or skywalking as a substring.
|
| Tags | sky-walking-agent=<version> |
When binding SkyWalking using a user-provided service, it must have name or tag with sky-walking or skywalking in it. The credential payload can contain the following entries. Note: Credentials marked as "(Optional)" may be required for some versions of the SkyWalking agent. Please see the SkyWalking Java Agent Configuration Properties for the version of the agent used by your application for more details.
| Name | Description |
|---|---|
collector_backend_services |
The collector backend address(es). Examples: single collector — 127.0.0.1:11800; cluster — 10.2.45.126:11800,10.2.45.127:11800. Also accepted as collectorBackendServices or backend_service. |
sample-n-per-3-secs |
(Optional) The number of sampled traces per 3 seconds. Negative number means sample traces as many as possible, most likely 100% |
span-limit-per-segment |
(Optional) The max amount of spans in a single segment |
ignore-suffix |
(Optional) Ignore the segments if their operation names start with these suffix |
open-debugging-class |
(Optional) If true, skywalking agent will save all instrumented classes files in /debugging folder.Skywalking team may ask for these files in order to resolve compatible problem |
logging-level |
(Optional) Logging level |
For general information on configuring the buildpack, including how to specify configuration values through environment variables, refer to Configuration and Extension.
The framework can be configured by setting the JBP_CONFIG_SKY_WALKING_AGENT environment variable. The value must be valid inline YAML.
| Name | Description |
|---|---|
default_application_name |
Fallback application name used in the SkyWalking dashboard only when VCAP_APPLICATION is not available (i.e. outside a Cloud Foundry container). On Cloud Foundry, VCAP_APPLICATION.application_name is always used instead, prefixed with the space name (space:app), and this setting is ignored. |
VCAP_APPLICATION— the buildpack readsspace_nameandapplication_namefrom this variable and sets the service name to<space>:<app>. This is the value used for every normal Cloud Foundry deployment;default_application_namehas no effect here.default_application_name(fallback) — used only whenVCAP_APPLICATIONis absent or unparseable (e.g. running the agent outside Cloud Foundry).
Set a fallback name for non-CF environments:
JBP_CONFIG_SKY_WALKING_AGENT: '{default_application_name: my-service}'Note: The resources/sky_walking_agent directory approach from the Ruby buildpack (2013-2025) is no longer supported. This was a buildpack-level feature where teams would fork the java-buildpack repository, add custom files to resources/sky_walking_agent/, and package their custom buildpack. The Go buildpack does not package the resources/ directory.