> **Experimental**
>
> `@aws-cdk/aws-applicationsignals-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# DotNetLinuxInjector

Linux-specific implementation of the .NET SDK injector. Handles CoreCLR profiler setup and paths for Linux environments.

Extends: Injector › DotNetInjector › DotNetLinuxInjector

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/enablement/ecs-sdk-instrumentation.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-applicationsignals-alpha/lib/enablement/ecs-sdk-instrumentation.ts#L249)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as applicationsignals_alpha from '@aws-cdk/aws-applicationsignals-alpha';
import { aws_ecs as ecs } from 'aws-cdk-lib';

declare const cpuArchitecture: ecs.CpuArchitecture;
declare const instrumentationVersion: applicationsignals_alpha.InstrumentationVersion;
const dotNetLinuxInjector = new applicationsignals_alpha.DotNetLinuxInjector('sharedVolumeName', instrumentationVersion, cpuArchitecture, /* all optional props */ [{
  name: 'name',
  value: 'value',
}]);
```

## Initializer

```ts
new DotNetLinuxInjector(sharedVolumeName: string, instrumentationVersion: InstrumentationVersion, cpuArch: CpuArchitecture, overrideEnvironments?: EnvironmentExtension[])
```

## Properties

- `command`: string[] — The command to run the init container.

- `containerPath`: string — The path to ADOT SDK agent in the init container.

## Methods

- `injectInitContainer(taskDefinition: TaskDefinition): ContainerDefinition` — Inject ADOT SDK agent init container.

  **Parameters**

  - `taskDefinition` — The TaskDefinition to render.

  **Returns:** The created ContainerDefinition

- `renderDefaultContainer(taskDefinition: TaskDefinition): void` — Render the application container for SDK instrumentation.

  **Parameters**

  - `taskDefinition` — The TaskDefinition to render.
