@datadog/datadog-ci-plugin-container-app 5.24.1 → 5.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -60,9 +60,9 @@ datadog-ci container-app instrument \
60
60
 
61
61
  ### Automatic APM instrumentation
62
62
 
63
- Use `--tracing inject` to detect the application language and add its tracer without rebuilding the application image. Add `--language <language>` to copy only one tracer. Supported language values are `java`, `nodejs`, `csharp`, `python`, `ruby`, and `php`. The command copies the tracer through an init container and keeps the Datadog sidecar for trace transport.
63
+ Use `--tracing inject` to detect the application language and add its tracer without rebuilding the application image. Add `--language <language>` to copy only one tracer. Supported language values are `java`, `nodejs`, `csharp`, `python`, `ruby`, and `php`. `dotnet` is accepted as an alias for `csharp`. The command copies the tracer through an init container and keeps the Datadog sidecar for trace transport.
64
64
 
65
- `--tracer-version` and `--tracer-libc` require `--language`. Single-language injection uses the `latest` tracer version and `glibc` by default. Ruby injection does not support musl, and .NET tracer versions before 3.0 are not supported. Runtime support follows the [APM compatibility requirements](https://docs.datadoghq.com/tracing/trace_collection/compatibility/); `latest` can drop runtimes after they reach end of life.
65
+ `--tracer-version` and `--tracer-libc` require `--tracing inject --language`. Single-language injection uses the `latest` tracer version and `glibc` by default. Ruby injection does not support musl, and .NET tracer versions before 3.0 are not supported. Runtime support follows the [APM compatibility requirements](https://docs.datadoghq.com/tracing/trace_collection/compatibility/); `latest` can drop runtimes after they reach end of life.
66
66
 
67
67
  Go tracers cannot be injected. Install `dd-trace-go` in the application image, and use `--tracing manual`.
68
68
 
@@ -70,6 +70,16 @@ Automatic instrumentation can increase cold-start delays when the app scales to
70
70
 
71
71
  For a Container App with multiple application containers, use `--container-name` to select one container. This differs from `--name`, which selects the Container App resource.
72
72
 
73
+ A tracer your own image installs is left alone. The command removes the startup settings it wrote, which it recognizes from the `/datadog-lib` and `/opt/datadog-packages` paths it copies tracers into. Settings a manual install shares with it, such as `CORECLR_ENABLE_PROFILING`, are only removed alongside one of those paths.
74
+
75
+ The following names and paths belong to this command. Every run removes them before applying what you asked for, so a tracer left by an earlier release or another tool is replaced rather than left alongside the new one. Use different names and paths for anything of your own, and the command reports when it replaces something it did not write.
76
+
77
+ | Resource | Name or path |
78
+ | -------------- | --------------------------------------- |
79
+ | Init container | `datadog-tracer` |
80
+ | Volume | `datadog-tracer` |
81
+ | Mount paths | `/datadog-lib`, `/opt/datadog-packages` |
82
+
73
83
  Tracing defaults to `manual`, which uses a tracer already installed in the application image. Use `--tracing disabled` to turn tracing off.
74
84
 
75
85
  You can use any nonempty `--language` value without `--tracing inject` to set `DD_SOURCE` for log parsing. With `--tracing inject`, use Java, Node.js, .NET, Python, Ruby, or PHP.
@@ -115,6 +125,7 @@ You must have valid Azure credentials configured with access to the Container Ap
115
125
  - Azure PowerShell credentials
116
126
 
117
127
  For local development, ensure you're authenticated through the Azure CLI:
128
+
118
129
  ```bash
119
130
  az login
120
131
  ```
@@ -123,16 +134,17 @@ az login
123
134
 
124
135
  You must expose these environment variables in the environment where you are running `datadog-ci container-app instrument`:
125
136
 
126
- | Environment Variable | Description | Example |
127
- | -------------------- | ----------- | ------- |
128
- | `DD_API_KEY` | **Required**. Datadog API Key. Sets the `DD_API_KEY` environment variable on your Container App. For more information about getting a Datadog API key, see the [API key documentation][1]. | `export DD_API_KEY=<API_KEY>` |
129
- | `DD_SITE` | Set which Datadog site to send data to. Possible values are `datadoghq.com`, `datadoghq.eu`, `us3.datadoghq.com`, `us5.datadoghq.com`, `ap1.datadoghq.com`, `ap2.datadoghq.com`, `uk1.datadoghq.com`, `ddog-gov.com`, and `us2.ddog-gov.com`. The default is `datadoghq.com`. | `export DD_SITE=datadoghq.com` |
137
+ | Environment Variable | Description | Example |
138
+ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
139
+ | `DD_API_KEY` | **Required**. Datadog API Key. Sets the `DD_API_KEY` environment variable on your Container App. For more information about getting a Datadog API key, see the [API key documentation][1]. | `export DD_API_KEY=<API_KEY>` |
140
+ | `DD_SITE` | Set which Datadog site to send data to. Possible values are `datadoghq.com`, `datadoghq.eu`, `us3.datadoghq.com`, `us5.datadoghq.com`, `ap1.datadoghq.com`, `ap2.datadoghq.com`, `uk1.datadoghq.com`, `ddog-gov.com`, and `us2.ddog-gov.com`. The default is `datadoghq.com`. | `export DD_SITE=datadoghq.com` |
130
141
 
131
142
  ### Arguments
132
143
 
133
144
  Configuration can be done using command-line arguments or a JSON configuration file (see the next section).
134
145
 
135
146
  #### `instrument`
147
+
136
148
  You can pass the following arguments to `instrument` to specify its behavior. Values in the configuration file override command-line arguments.
137
149
 
138
150
  <!-- BEGIN_USAGE:instrument -->
@@ -157,15 +169,16 @@ You can pass the following arguments to `instrument` to specify its behavior. Va
157
169
  | `--sidecar-image` | | Override to pin a specific version tag or to use a mirrored image from a custom registry (e.g., ACR) to avoid pull rate limits. | `index.docker.io/datadog/serverless-init:latest` |
158
170
  | `--tracing` | | Configure APM instrumentation. Use `manual` when the tracer is installed, `inject` to detect the language and add a tracer automatically, or `disabled` to turn tracing off. Add `--language` with `inject` to select one tracer. Defaults to `manual`. | |
159
171
  | `--language` | | Set the application language for log parsing. With `--tracing inject`, this selects one tracer instead of detecting the language automatically. Supported injection values: `java`, `nodejs`, `csharp`, `python`, `ruby`, `php`. | |
160
- | `--tracer-version` | | Set the tracer image tag for automatic instrumentation with `--language`. | `latest` |
161
- | `--tracer-libc` | | Set the C standard library used by the application image with `--language`. Possible values: "glibc", "musl". | `glibc` |
162
- | `--container-name` | | Select the application container to instrument when the Container App has multiple application containers. | |
172
+ | `--tracer-version` | | Set the tracer image tag. Requires `--tracing inject --language`. | `latest` |
173
+ | `--tracer-libc` | | Set the C standard library used by the application image. Requires `--tracing inject --language`. Possible values: "glibc", "musl". | `glibc` |
174
+ | `--container-name` | | Select the application container to instrument when the Container App has several. Requires `--tracing inject`. | |
163
175
  | `--source-code-integration` or `--sourceCodeIntegration` | | Whether to enable the Datadog Source Code integration. This tags your service(s) with the Git repository and the latest commit hash of the local directory. Specify `--no-source-code-integration` to disable. | `true` |
164
176
  | `--upload-git-metadata` or `--uploadGitMetadata` | | Whether to enable Git metadata uploading, as a part of the source code integration. Git metadata uploading is only required if you don't have the Datadog GitHub integration installed. Specify `--no-upload-git-metadata` to disable. | `true` |
165
177
  | `--extra-tags` or `--extraTags` | | Additional tags to add to the app in the format "key1:value1,key2:value2". | |
166
178
  <!-- END_USAGE:instrument -->
167
179
 
168
180
  #### `uninstrument`
181
+
169
182
  You can pass the following arguments to `uninstrument` to specify its behavior. These arguments override the values set in the configuration file, if any.
170
183
 
171
184
  <!-- BEGIN_USAGE:uninstrument -->
@@ -201,10 +214,7 @@ Instead of supplying arguments, you can create a configuration file in your proj
201
214
  "sourceCodeIntegration": true,
202
215
  "uploadGitMetadata": true,
203
216
  "extraTags": "team:backend,project:api",
204
- "envVars": [
205
- "CUSTOM_VAR1=value1",
206
- "CUSTOM_VAR2=value2"
207
- ]
217
+ "envVars": ["CUSTOM_VAR1=value1", "CUSTOM_VAR2=value2"]
208
218
  }
209
219
  }
210
220
  ```
@@ -266,7 +276,6 @@ datadog-ci container-app instrument \
266
276
  --log-path /home/LogFiles/myapp/*.log \
267
277
  ```
268
278
 
269
-
270
279
  ### Dry run to preview changes
271
280
 
272
281
  ```bash
package/dist/bundle.d.ts CHANGED
@@ -7387,7 +7387,7 @@ interface CompositeInjectionSpec {
7387
7387
  readonly env: readonly EnvFragment[];
7388
7388
  }
7389
7389
  //#endregion
7390
- //#region src/ssi.d.ts
7390
+ //#region ../base/dist/helpers/serverless/ssi/config.d.ts
7391
7391
  type SsiConfigResult = ({
7392
7392
  kind: 'errors';
7393
7393
  errors: readonly string[];