Skip to content

Commit 5f92624

Browse files
committed
Add OpenTelemetry dependencies for backend instrumentation
- Add core OpenTelemetry SDK and API packages - Include automatic instrumentation for Phoenix, Ecto, Absinthe, and Cowboy - Add OTLP exporter for sending traces to Splunk Observability Cloud - Update Node.js version to 18 for frontend OpenTelemetry compatibility
1 parent 423a985 commit 5f92624

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

manual-instrumentation/worms_in_space/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:10-alpine AS worms-in-space-npm
1+
FROM node:18-alpine AS worms-in-space-npm
22
WORKDIR /app/npm
33
COPY ./assets/package.json /app/npm/package.json
44
COPY ./assets/package-lock.json /app/npm/package-lock.json

manual-instrumentation/worms_in_space/mix.exs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,15 @@ defp deps do
4646
{:absinthe_plug, "~> 1.5"},
4747
{:absinthe_phoenix, "~> 2.0"},
4848
{:cors_plug, "~> 3.0"},
49-
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev}
49+
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
50+
# OpenTelemetry dependencies
51+
{:opentelemetry, "~> 1.3"},
52+
{:opentelemetry_api, "~> 1.2"},
53+
{:opentelemetry_exporter, "~> 1.6"},
54+
{:opentelemetry_phoenix, "~> 1.1"},
55+
{:opentelemetry_ecto, "~> 1.1"},
56+
{:opentelemetry_absinthe, "~> 2.2"},
57+
{:opentelemetry_cowboy, "~> 0.2"}
5058
]
5159
end
5260

0 commit comments

Comments
 (0)