-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(run-groups): add code sample and update concepts (#3887)
- Loading branch information
Adnan Rahić
authored
Jun 3, 2024
1 parent
21d9969
commit f68fd04
Showing
14 changed files
with
4,996 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# GRPC | ||
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://tracetest-agent:4317/" | ||
# or, use HTTP | ||
# OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://tracetest-agent:4318/v1/traces" | ||
TRACETEST_API_KEY="<YOUR_TRACETEST_API_KEY>" | ||
TRACETEST_API_TOKEN="<YOUR_TRACETEST_TOKEN>" |
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,3 @@ | ||
node_modules | ||
.DS_Store | ||
.env |
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", "run", "with-grpc-tracer" ] |
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,10 @@ | ||
const express = require("express") | ||
const app = express() | ||
app.get("/", (req, res) => { | ||
setTimeout(() => { | ||
res.send("Hello World") | ||
}, 1000); | ||
}) | ||
app.listen(8080, () => { | ||
console.log(`Listening for requests on http://localhost:8080`) | ||
}) |
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,23 @@ | ||
version: '3' | ||
services: | ||
app: | ||
image: tracetest-run-groups | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
build: . | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=${OTEL_EXPORTER_OTLP_TRACES_ENDPOINT} | ||
|
||
# Cloud-based Managed Tracetest | ||
tracetest-agent: | ||
image: kubeshop/tracetest-agent:latest | ||
command: | ||
- "--mode=verbose" | ||
environment: | ||
# Find the Agent API Key here: https://docs.tracetest.io/configuration/agent | ||
- TRACETEST_API_KEY=${TRACETEST_API_KEY} | ||
ports: | ||
- 4317:4317 | ||
- 4318:4318 |
Oops, something went wrong.