@@ -223,20 +223,19 @@ The Calendar application uses the OpenTelemetry logging exporter in its Logback
223
223
224
224
Additionally, environment variables configure the OpenTelemetry environment to export logs, metrics, and traces:
225
225
226
- 1 . Go to the Calendar application's Docker Compose file at ` ./deploys/docker/docker-compose-otel.yml ` .
227
- 2 . The ` OTEL_LOGS_EXPORTER=otlp ` configuration allows the logs to be sent with OTLP.
228
- 3 . The ` OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317 ` configuration allows the metrics and traces to be sent with OTLP.
226
+ 1 . Go to the Calendar application's Docker Compose file at ` ./deploys/docker/docker-compose-otelcol.yml ` .
227
+ 2 . The ` OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317 ` configuration allows the metrics, traces, and logs to be sent with OTLP.
229
228
230
229
## Correlating observability data
231
230
232
231
[ Unified service tagging] [ 6 ] ties observability data together in Datadog so you can navigate across metrics, traces, and logs with consistent tags.
233
232
234
233
The Calendar application is already configured with unified service tagging:
235
234
236
- 1 . Go to the Calendar application's Docker Compose file at ` ./deploys/docker/docker-compose-otel .yml ` .
235
+ 1 . Go to the Calendar application's Docker Compose file at ` ./deploys/docker/docker-compose-otelcol .yml ` .
237
236
2 . The following lines enable the correlation between application traces and other observability data:
238
237
239
- {{< code-block lang="yaml" filename="docker-compose-otel .yml" collapsible="true" disable_copy="true" >}}
238
+ {{< code-block lang="yaml" filename="docker-compose-otelcol .yml" collapsible="true" disable_copy="true" >}}
240
239
environment:
241
240
- OTEL_SERVICE_NAME=calendar-otel
242
241
- OTEL_RESOURCE_ATTRIBUTES=deployment.environment=docker,host.name=otelcol-docker,service.version=<IMAGE_TAG>
@@ -249,7 +248,7 @@ To start generating and forwarding observability data to Datadog, you need to ru
249
248
1 . Run the application from the ` calendar/ ` folder:
250
249
251
250
{{< code-block lang="sh" >}}
252
- docker compose -f deploys/docker/docker-compose-otel .yml up
251
+ docker compose -f deploys/docker/docker-compose-otelcol .yml up
253
252
{{< /code-block >}}
254
253
This command creates a Docker container with the OpenTelemetry Collector and the Calendar service.
255
254
0 commit comments