Skip to content

Commit

Permalink
[π˜€π—½π—Ώ] initial version
Browse files Browse the repository at this point in the history
Created using spr 1.3.4
  • Loading branch information
willruggiano committed Jul 8, 2024
1 parent 2954ab5 commit 5a37563
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net
export OTEL_EXPORTER_OTLP_HEADERS="api-key=$NEW_RELIC_LICENSE_KEY"
OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net
OTEL_EXPORTER_OTLP_HEADERS="api-key=$NEW_RELIC_LICENSE_KEY"
8 changes: 8 additions & 0 deletions bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ app.use(
),
);

app.use((req, _, next) => {
if (process.env.DEBUG_HEADERS) {
console.log(JSON.stringify(req.headers, null, 2));
}

next();
});

app.use(
"/",
cors(),
Expand Down
12 changes: 5 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ services:
pull_policy: build
jaeger:
image: jaegertracing/all-in-one
command:
- "--collector.otlp.http.cors.allowed-headers=*"
- "--collector.otlp.http.cors.allowed-origins=*"
ports:
- 6831:6831/udp # jaeger.thrift
- 6832:6832/udp
- 14268:14268
- 14269:14269
- 5778:5778 # serve configs
- 16686:16686 # serve frontend
- 4317:4317 # grpc
- 4318:4318 # http
- 14250:14250 # model.proto
- 16686:16686 # serve frontend
restart: always
postgresql:
image: postgres:latest
command: -c 'config_file=/etc/postgresql/postgresql.conf'
Expand Down

0 comments on commit 5a37563

Please sign in to comment.