cloud.tencent.com/inject-nodejs: "true"cloud.tencent.com/otel-service-name: my-app # Application name, processes that connect using the same application name are displayed in APM as multiple instances under the same application.# The application name can be up to 63 characters and can only contain lowercase letters, digits, and the separator (-), and it must start with a lowercase letter and end with a digit or lowercase letter.
spec.template.metadata.annotations
, affecting the Pod's annotation, not the workload's annotation. You can see the following code snippet: apiVersion: apps/v1kind: Deploymentmetadata:labels:k8s-app: my-appname: my-appnamespace: defaultspec:selector:matchLabels:k8s-app: my-apptemplate:metadata:labels:k8s-app: my-appannotations:cloud.tencent.com/inject-nodejs: "true" # Add herecloud.tencent.com/otel-service-name: my-appspec:containers:image: my-app:0.1name: my-app
Configuration Item | Description |
cloud.tencent.com/apm-token | Specify the Token for the APM business system. If this configuration item is not added, the configuration of the Operator is used (corresponding to the Operator's env.APM_TOKEN field). |
cloud.tencent.com/nodejs-instr-version | Specify the Node.js agent version. If this configuration item is not added, the Operator's configuration is used (corresponding to the Operator'snull env.NODEJS_INSTR_VERSION field). The values can be latest (default) or a specific version number. For a list of specific version numbers, see Agent Version Information. It is not recommended to fill in this field unless necessary. |
Was this page helpful?