|
| 1 | +/* |
| 2 | + * Copyright The OpenTelemetry Authors |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + */ |
| 5 | + |
| 6 | +/* |
| 7 | + * DO NOT EDIT, this is an Auto-generated file from: |
| 8 | + * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2 |
| 9 | + */ |
| 10 | + |
| 11 | +#pragma once |
| 12 | + |
| 13 | +#include "opentelemetry/common/macros.h" |
| 14 | +#include "opentelemetry/version.h" |
| 15 | + |
| 16 | +OPENTELEMETRY_BEGIN_NAMESPACE |
| 17 | +namespace semconv |
| 18 | +{ |
| 19 | +namespace cloudfoundry |
| 20 | +{ |
| 21 | + |
| 22 | +/** |
| 23 | + * The guid of the application. |
| 24 | + * <p> |
| 25 | + * Application instrumentation should use the value from environment |
| 26 | + * variable @code VCAP_APPLICATION.application_id @endcode. This is the same value as |
| 27 | + * reported by @code cf app <app-name> --guid @endcode. |
| 28 | + */ |
| 29 | +static constexpr const char *kCloudfoundryAppId = "cloudfoundry.app.id"; |
| 30 | + |
| 31 | +/** |
| 32 | + * The index of the application instance. 0 when just one instance is active. |
| 33 | + * <p> |
| 34 | + * CloudFoundry defines the @code instance_id @endcode in the <a |
| 35 | + * href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggegator v2 envelope</a>. It |
| 36 | + * is used for logs and metrics emitted by CloudFoundry. It is supposed to contain the application |
| 37 | + * instance index for applications deployed on the runtime. <p> Application instrumentation should |
| 38 | + * use the value from environment variable @code CF_INSTANCE_INDEX @endcode. |
| 39 | + */ |
| 40 | +static constexpr const char *kCloudfoundryAppInstanceId = "cloudfoundry.app.instance.id"; |
| 41 | + |
| 42 | +/** |
| 43 | + * The name of the application. |
| 44 | + * <p> |
| 45 | + * Application instrumentation should use the value from environment |
| 46 | + * variable @code VCAP_APPLICATION.application_name @endcode. This is the same value |
| 47 | + * as reported by @code cf apps @endcode. |
| 48 | + */ |
| 49 | +static constexpr const char *kCloudfoundryAppName = "cloudfoundry.app.name"; |
| 50 | + |
| 51 | +/** |
| 52 | + * The guid of the CloudFoundry org the application is running in. |
| 53 | + * <p> |
| 54 | + * Application instrumentation should use the value from environment |
| 55 | + * variable @code VCAP_APPLICATION.org_id @endcode. This is the same value as |
| 56 | + * reported by @code cf org <org-name> --guid @endcode. |
| 57 | + */ |
| 58 | +static constexpr const char *kCloudfoundryOrgId = "cloudfoundry.org.id"; |
| 59 | + |
| 60 | +/** |
| 61 | + * The name of the CloudFoundry organization the app is running in. |
| 62 | + * <p> |
| 63 | + * Application instrumentation should use the value from environment |
| 64 | + * variable @code VCAP_APPLICATION.org_name @endcode. This is the same value as |
| 65 | + * reported by @code cf orgs @endcode. |
| 66 | + */ |
| 67 | +static constexpr const char *kCloudfoundryOrgName = "cloudfoundry.org.name"; |
| 68 | + |
| 69 | +/** |
| 70 | + * The UID identifying the process. |
| 71 | + * <p> |
| 72 | + * Application instrumentation should use the value from environment |
| 73 | + * variable @code VCAP_APPLICATION.process_id @endcode. It is supposed to be equal to |
| 74 | + * @code VCAP_APPLICATION.app_id @endcode for applications deployed to the runtime. |
| 75 | + * For system components, this could be the actual PID. |
| 76 | + */ |
| 77 | +static constexpr const char *kCloudfoundryProcessId = "cloudfoundry.process.id"; |
| 78 | + |
| 79 | +/** |
| 80 | + * The type of process. |
| 81 | + * <p> |
| 82 | + * CloudFoundry applications can consist of multiple jobs. Usually the |
| 83 | + * main process will be of type @code web @endcode. There can be additional background |
| 84 | + * tasks or side-cars with different process types. |
| 85 | + */ |
| 86 | +static constexpr const char *kCloudfoundryProcessType = "cloudfoundry.process.type"; |
| 87 | + |
| 88 | +/** |
| 89 | + * The guid of the CloudFoundry space the application is running in. |
| 90 | + * <p> |
| 91 | + * Application instrumentation should use the value from environment |
| 92 | + * variable @code VCAP_APPLICATION.space_id @endcode. This is the same value as |
| 93 | + * reported by @code cf space <space-name> --guid @endcode. |
| 94 | + */ |
| 95 | +static constexpr const char *kCloudfoundrySpaceId = "cloudfoundry.space.id"; |
| 96 | + |
| 97 | +/** |
| 98 | + * The name of the CloudFoundry space the application is running in. |
| 99 | + * <p> |
| 100 | + * Application instrumentation should use the value from environment |
| 101 | + * variable @code VCAP_APPLICATION.space_name @endcode. This is the same value as |
| 102 | + * reported by @code cf spaces @endcode. |
| 103 | + */ |
| 104 | +static constexpr const char *kCloudfoundrySpaceName = "cloudfoundry.space.name"; |
| 105 | + |
| 106 | +/** |
| 107 | + * A guid or another name describing the event source. |
| 108 | + * <p> |
| 109 | + * CloudFoundry defines the @code source_id @endcode in the <a |
| 110 | + * href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>. |
| 111 | + * It is used for logs and metrics emitted by CloudFoundry. It is |
| 112 | + * supposed to contain the component name, e.g. "gorouter", for |
| 113 | + * CloudFoundry components. |
| 114 | + * <p> |
| 115 | + * When system components are instrumented, values from the |
| 116 | + * <a href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a> |
| 117 | + * should be used. The @code system.id @endcode should be set to |
| 118 | + * @code spec.deployment/spec.name @endcode. |
| 119 | + */ |
| 120 | +static constexpr const char *kCloudfoundrySystemId = "cloudfoundry.system.id"; |
| 121 | + |
| 122 | +/** |
| 123 | + * A guid describing the concrete instance of the event source. |
| 124 | + * <p> |
| 125 | + * CloudFoundry defines the @code instance_id @endcode in the <a |
| 126 | + * href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>. |
| 127 | + * It is used for logs and metrics emitted by CloudFoundry. It is |
| 128 | + * supposed to contain the vm id for CloudFoundry components. |
| 129 | + * <p> |
| 130 | + * When system components are instrumented, values from the |
| 131 | + * <a href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a> |
| 132 | + * should be used. The @code system.instance.id @endcode should be set to @code spec.id @endcode. |
| 133 | + */ |
| 134 | +static constexpr const char *kCloudfoundrySystemInstanceId = "cloudfoundry.system.instance.id"; |
| 135 | + |
| 136 | +} // namespace cloudfoundry |
| 137 | +} // namespace semconv |
| 138 | +OPENTELEMETRY_END_NAMESPACE |
0 commit comments