-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples(get-started-tracetest-cloud): add 3 deployment arch
- Loading branch information
1 parent
8e36937
commit 70a4021
Showing
28 changed files
with
8,416 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
examples/get-started-cloud-based-managed-tracetest/docker/.env.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TRACETEST_API_KEY="" | ||
TRACETEST_ENVIRONMENT_ID="" |
2 changes: 2 additions & 0 deletions
2
examples/get-started-cloud-based-managed-tracetest/docker/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.env |
6 changes: 6 additions & 0 deletions
6
examples/get-started-cloud-based-managed-tracetest/docker/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM node:slim | ||
WORKDIR /usr/src/app/ | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
EXPOSE 8080 |
12 changes: 12 additions & 0 deletions
12
examples/get-started-cloud-based-managed-tracetest/docker/app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require('./tracing'); // Initialize OpenTelemetry tracing | ||
|
||
const express = require('express'); | ||
const app = express(); | ||
|
||
app.get('/', (req, res) => { | ||
res.send('Hello, World!'); | ||
}); | ||
|
||
app.listen(8080, () => { | ||
console.log('Server is running on port 8080'); | ||
}); |
17 changes: 17 additions & 0 deletions
17
examples/get-started-cloud-based-managed-tracetest/docker/docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
services: | ||
app: | ||
image: app | ||
build: . | ||
command: npm start # runs "node app.js" | ||
ports: | ||
- 8080:8080 | ||
tracetest-agent: | ||
image: kubeshop/tracetest-agent | ||
environment: | ||
- TRACETEST_API_KEY=${TRACETEST_API_KEY} | ||
- TRACETEST_ENVIRONMENT_ID=${TRACETEST_ENVIRONMENT_ID} | ||
command: | ||
- "--mode=verbose" | ||
ports: | ||
- 4317:4317 | ||
- 4318:4318 |
Oops, something went wrong.