log_processing_rules:
- type: exclude_at_match
name: exclude_sensitive_info
pattern: (?:sensitive\-info)
| image: | |
| repository: datadog/agent | |
| tag: latest | |
| pullPolicy: IfNotPresent | |
| nameOverride: "" | |
| fullnameOverride: "" | |
| datadog: | |
| apiKey: xxx | |
| appKey: xxx | |
| name: datadog |
| @ECHO OFF | |
| SETLOCAL ENABLEDELAYEDEXPANSION | |
| SETLOCAL ENABLEEXTENSIONS | |
| ECHO Verifying installer package... | |
| ECHO. | |
| REM The value of this path will be changed during build to use the version stamped msi file. | |
| SET msi_path="%~dp0AppDynamics\dotNetAgentSetup.msi" | |
| using System; | |
| using System.Collections.Generic; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Blob; | |
| using Datadog.Trace; //Adding the Datadog.Trace nuget package (https://www.nuget.org/packages/Datadog.Trace) | |
| namespace BlobServiceAPI.Controllers | |
| { | |
| [Route("api/[controller]")] |
| [String[]] $v = @("COR_ENABLE_PROFILING=1", "COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}","CORECLR_ENABLE_PROFILING=1", "CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}", "DD_TRACE_ANALYTICS_ENABLED=true", "DD_AspNet_ENABLED=true", "DD_LOGS_INJECTION=true") | |
| Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\W3SVC -Name Environment -Value $v | |
| Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\WAS -Name Environment -Value $v | |
| net stop was /y | |
| net start w3svc |
| rem Set environment variables | |
| SET COR_ENABLE_PROFILING=1 | |
| SET COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8} | |
| rem Start application | |
| example.exe |
| "ipcMode": null, | |
| "executionRoleArn": "arn:aws:iam::172597598159:role/ecsTaskExecutionRole", | |
| "containerDefinitions": [ | |
| { | |
| "dnsSearchDomains": null, | |
| "environmentFiles": null, | |
| "logConfiguration": { | |
| "logDriver": "awslogs", | |
| "secretOptions": null, | |
| "options": { |
| [String[]] $v = @("COR_ENABLE_PROFILING=1", "COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}","CORECLR_ENABLE_PROFILING=1", "CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}") | |
| Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\W3SVC -Name Environment -Value $v | |
| Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\WAS -Name Environment -Value $v | |
| net stop was /y | |
| net start w3svc |
| FROM 415971912945.dkr.ecr.us-west-2.amazonaws.com/aspnet:3.1 | |
| RUN apt-get update | |
| RUN apt-get install zip -y | |
| # BUILD TIME ARGUMENTS | |
| ARG SERVICE_NAME | |
| COPY ./extract/ /app/ |
| #BASE CONATINER AMAZON JAVA 8 | |
| FROM 415971912945.dkr.ecr.us-west-2.amazonaws.com/amazoncorretto:8-al2-full | |
| # BUILD TIME ARGUMENTS | |
| ARG SERVICE_NAME | |
| #ADD jq for entrypoint.sh | |
| RUN yum install jq -y | |
| RUN yum install unzip -y |