Skip to content

Commit 82c433a

Browse files
authored
Merge pull request DataDog#16022 from DataDog/add-dotnet-and-ruby
Adding dotnet, ruby, and clearer tracing callout
2 parents 346138d + a52d654 commit 82c433a

File tree

1 file changed

+45
-16
lines changed
  • content/en/serverless/azure_container_apps

1 file changed

+45
-16
lines changed

content/en/serverless/azure_container_apps/_index.md

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ Azure Container Apps is a fully managed serverless platform for deploying and sc
1717

1818
If you are using a Dockerfile to build your application, complete the following:
1919

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].
2121

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.
2323

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.
2525

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.
2727

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.
2829

29-
{{< programming-lang-wrapper langs="go,python,nodejs,java" >}}
30+
31+
{{< programming-lang-wrapper langs="go,python,nodejs,java,dotnet,ruby" >}}
3032
{{< programming-lang lang="go" >}}
3133
```
3234
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
8082
[1]: /tracing/setup_overview/setup/java/?tabs=containers
8183
[2]: https://github.com/DataDog/crpb/tree/main/java
8284
{{< /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 >}}
83111
{{< /programming-lang-wrapper >}}
84112

85113
### Custom metrics
86-
You can submit custom metrics using a [DogStatsd client][3].
114+
You can submit custom metrics using a [DogStatsd client][4].
87115

88116
**Note**: Only `DISTRIBUTION` metrics should be used.
89117

@@ -93,13 +121,13 @@ You can submit custom metrics using a [DogStatsd client][3].
93121

94122
| Variable | Description |
95123
| -------- | ----------- |
96-
| `DD_SITE` | [Datadog site][4]. |
124+
| `DD_SITE` | [Datadog site][5]. |
97125
| `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]. |
103131

104132
## Log collection
105133

@@ -111,7 +139,8 @@ You can use the [Azure integration][1] to collect logs. Alternatively, you can s
111139

112140

113141
[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

Comments
 (0)