-
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.
- Loading branch information
Showing
8 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,50 @@ | ||
# Trace Mode | ||
|
||
Trace Mode enables you to verify trace ingestion is configured correctly, and is also as a starting point to create trace-based tests. | ||
|
||
You can use it to: | ||
- View traces coming in to your Tracetest account. | ||
- Create tests from certain trace spans. Tracetest figures out how to help you trigger tests based on span attributes and metadata. | ||
- Create tests from trace IDs. | ||
|
||
:::note | ||
Traces will be deleted after 4 days. | ||
::: | ||
|
||
The steps to use Tracetest Trace Mode are: | ||
|
||
**1.** Pull the latest version of the Pokeshop repo master branch [here](https://github.com/kubeshop/pokeshop). | ||
|
||
**2.** Make sure Docker is running. | ||
|
||
**3.** In the Docker Desktop, search for and make sure to delete any previous agent image. | ||
|
||
![Delete Previous Agent](../img/delete-previous-agent.png) | ||
|
||
|
||
**4.** Create the .env file in the pokeshop root folder from the template and add | ||
`POKESHOP_DEMO_URL=http://localhost:8081 | ||
TRACETEST_AGENT_API_KEY=<your-agent-api-key> | ||
TRACETEST_ENVIRONMENT_ID=<your-environment-id> | ||
TRACETEST_TRACE_MODE=true`. | ||
|
||
The agent API key and Environment ID can be found [here](https://app.tracetest.io/retrieve-token). | ||
|
||
**5.** From the `pokeshop` root folder run `docker compose -f docker-compose.yml -f docker-compose.e2e.yml up -d`. | ||
|
||
**6.** From the Tracetest app, in **Settings**, go to the **Trace Ingestion** configuration tab and select **Open Telemetry**. | ||
|
||
![Trace Ingestion](../img/trace-ingestion.png) | ||
|
||
You will see the **Open Telemetry** details and click **Save**: | ||
|
||
![Trace Ingestion Save](../img/trace-ingestion-save.png) | ||
|
||
**7.** Open your environment dashboard and look at the Traces' landing page. | ||
|
||
![Trace Landing Page](../img/traces-list.png) | ||
|
||
**8.** Play around with the Pokeshop UI at http://localhost:8081. You'll see traces appearing in the landing page. | ||
|
||
![Trace Details](../img/trace-details.png) | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.