-
Notifications
You must be signed in to change notification settings - Fork 72
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 4 deployment architecture …
…samples (#4025) * examples(get-started-tracetest-cloud): add 3 deployment arch * examples(get-started-tracetest-cloud): add sls code * cleanupo * updating usage of API gateway v2 * examples(get-start-tracetest-cloud): cleanup readmes * examples(get-started-tracetest-cloud): add simple console exporter * examples: edit readme * examples: standardize dockerfiles --------- Co-authored-by: Oscar Reyes <oscar-rreyes1@hotmail.com>
- Loading branch information
1 parent
8e36937
commit 4147cb3
Showing
36 changed files
with
11,049 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 |
7 changes: 7 additions & 0 deletions
7
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,7 @@ | ||
FROM node:slim | ||
WORKDIR /usr/src/app/ | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
EXPOSE 8080 | ||
CMD [ "npm", "start" ] |
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'); | ||
}); |
16 changes: 16 additions & 0 deletions
16
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,16 @@ | ||
services: | ||
app: | ||
image: app | ||
build: . | ||
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.