@@ -17,16 +17,18 @@ Azure Container Apps is a fully managed serverless platform for deploying and sc
17
17
18
18
If you are using a Dockerfile to build your application, complete the following:
19
19
20
- 1 . Copy the [ Datadog ` serverless-init ` binary ] [ 2 ] into your Docker image .
20
+ 1 . Instrument your application with a [ supported Datadog tracing library ] [ 2 ] .
21
21
22
- 2 . Use the ENTRYPOINT instruction to run the ` serverless-init ` binary as your Docker container is initiated .
22
+ 2 . Use the ` COPY ` instruction to copy the [ Datadog ` serverless-init ` binary] [ 3 ] into your Docker image .
23
23
24
- 3 . Use the CMD instruction to run your existing application and other required commands as arguments .
24
+ 3 . Use the ` ENTRYPOINT ` instruction to run the ` serverless-init ` binary as your Docker container is initiated .
25
25
26
- The following are examples of how to complete these three steps. You may need to adjust these examples depending on your existing Dockerfile setup .
26
+ 4 . Use the ` CMD ` instruction to run your existing application and other required commands as arguments .
27
27
28
+ The following are examples of how to complete these three steps. You may need to adjust these examples depending on your existing Dockerfile setup.
28
29
29
- {{< programming-lang-wrapper langs="go,python,nodejs,java" >}}
30
+
31
+ {{< programming-lang-wrapper langs="go,python,nodejs,java,dotnet,ruby" >}}
30
32
{{< programming-lang lang="go" >}}
31
33
```
32
34
COPY --from=datadog/serverless-init:latest /datadog-init /app/datadog-init
@@ -80,10 +82,36 @@ See [Tracing Java Applications][1] for detailed instructions. [Sample code for a
80
82
[ 1 ] : /tracing/setup_overview/setup/java/?tabs=containers
81
83
[ 2 ] : https://github.com/DataDog/crpb/tree/main/java
82
84
{{< /programming-lang >}}
85
+ {{< programming-lang lang="dotnet" >}}
86
+ ```
87
+ COPY --from=datadog/serverless-init:beta4 /datadog-init /app/datadog-init
88
+ ENTRYPOINT ["/app/datadog-init"]
89
+ CMD ["dotnet", "helloworld.dll"] (adapt this line to your needs)
90
+
91
+ ```
92
+
93
+ See [ Tracing .NET Applications] [ 1 ] for detailed instructions. [ Sample code for a simple .NET application] [ 2 ] .
94
+
95
+ [ 1 ] : /tracing/trace_collection/dd_libraries/dotnet-core?tab=containers
96
+ [ 2 ] : https://github.com/DataDog/crpb/tree/main/dotnet
97
+ {{< /programming-lang >}}
98
+ {{< programming-lang lang="ruby" >}}
99
+ ```
100
+ COPY --from=datadog/serverless-init:beta4 /datadog-init /app/datadog-init
101
+ ENTRYPOINT ["/app/datadog-init"]
102
+ CMD ["rails", "server", "-b", "0.0.0.0"] (adapt this line to your needs)
103
+
104
+ ```
105
+
106
+ See [ Tracing Ruby Applications] [ 1 ] for detailed instructions. [ Sample code for a simple Ruby application] [ 2 ] .
107
+
108
+ [ 1 ] : /tracing/trace_collection/dd_libraries/ruby/
109
+ [ 2 ] : https://github.com/DataDog/crpb/tree/main/ruby-on-rails
110
+ {{< /programming-lang >}}
83
111
{{< /programming-lang-wrapper >}}
84
112
85
113
### Custom metrics
86
- You can submit custom metrics using a [ DogStatsd client] [ 3 ] .
114
+ You can submit custom metrics using a [ DogStatsd client] [ 4 ] .
87
115
88
116
** Note** : Only ` DISTRIBUTION ` metrics should be used.
89
117
@@ -93,13 +121,13 @@ You can submit custom metrics using a [DogStatsd client][3].
93
121
94
122
| Variable | Description |
95
123
| -------- | ----------- |
96
- | ` DD_SITE ` | [ Datadog site] [ 4 ] . |
124
+ | ` DD_SITE ` | [ Datadog site] [ 5 ] . |
97
125
| ` DD_LOGS_ENABLED ` | When true, send logs (stdout and stderr) to Datadog. Defaults to false. |
98
- | ` DD_SERVICE ` | See [ Unified Service Tagging] [ 5 ] . |
99
- | ` DD_VERSION ` | See [ Unified Service Tagging] [ 5 ] . |
100
- | ` DD_ENV ` | See [ Unified Service Tagging] [ 5 ] . |
101
- | ` DD_SOURCE ` | See [ Unified Service Tagging] [ 5 ] . |
102
- | ` DD_TAGS ` | See [ Unified Service Tagging] [ 5 ] . |
126
+ | ` DD_SERVICE ` | See [ Unified Service Tagging] [ 6 ] . |
127
+ | ` DD_VERSION ` | See [ Unified Service Tagging] [ 6 ] . |
128
+ | ` DD_ENV ` | See [ Unified Service Tagging] [ 6 ] . |
129
+ | ` DD_SOURCE ` | See [ Unified Service Tagging] [ 6 ] . |
130
+ | ` DD_TAGS ` | See [ Unified Service Tagging] [ 6 ] . |
103
131
104
132
## Log collection
105
133
@@ -111,7 +139,8 @@ You can use the [Azure integration][1] to collect logs. Alternatively, you can s
111
139
112
140
113
141
[ 1 ] : /integrations/azure/#log-collection
114
- [ 2 ] : https://registry.hub.docker.com/r/datadog/serverless-init
115
- [ 3 ] : /metrics/custom_metrics/dogstatsd_metrics_submission/
116
- [ 4 ] : /getting_started/site/
117
- [ 5 ] : /getting_started/tagging/unified_service_tagging/
142
+ [ 2 ] : /tracing/trace_collection/dd_libraries/
143
+ [ 3 ] : https://registry.hub.docker.com/r/datadog/serverless-init
144
+ [ 4 ] : /metrics/custom_metrics/dogstatsd_metrics_submission/
145
+ [ 5 ] : /getting_started/site/
146
+ [ 6 ] : /getting_started/tagging/unified_service_tagging/
0 commit comments