-
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.
feat: add Dash0 as supported datastore (#4056)
- Loading branch information
Showing
38 changed files
with
1,232 additions
and
5 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
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 |
---|---|---|
|
@@ -208,7 +208,8 @@ components: | |
signoz, | ||
dynatrace, | ||
sumologic, | ||
instana | ||
instana, | ||
dash0 | ||
] | ||
SupportedClients: | ||
type: string | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
102 changes: 102 additions & 0 deletions
102
docs/docs/configuration/connecting-to-data-stores/dash0.mdx
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,102 @@ | ||
--- | ||
id: dash0 | ||
title: Dash0 | ||
description: Use Dash0 as the trace data store for Tracetest. Configure the OpenTelemetry Collector to receive traces and forward them to both Tracetest and Dash0. | ||
keywords: | ||
- tracetest | ||
- trace-based testing | ||
- observability | ||
- distributed tracing | ||
- testing | ||
image: https://res.cloudinary.com/djwdcmwdz/image/upload/v1698686403/docs/Blog_Thumbnail_14_rsvkmo.jpg | ||
--- | ||
|
||
If you want to use [Dash0](https://www.dash0.com/) as the trace data store, you'll configure the OpenTelemetry Collector to receive traces from your system and then send them to both Tracetest and Dash0. And, you don't have to change your existing pipelines to do so. | ||
|
||
:::tip | ||
Examples of configuring Tracetest with Dash0 can be found in the [`examples` folder of the Tracetest GitHub repo](https://github.com/kubeshop/tracetest/tree/main/examples). | ||
::: | ||
|
||
## Configuring OpenTelemetry Collector to Send Traces to both Dash0 and Tracetest | ||
|
||
In your OpenTelemetry Collector config file: | ||
|
||
- Set the `exporter` to `otlp/tracetest` | ||
- Set the `endpoint` to your Tracetest instance on port `4317` | ||
|
||
:::tip | ||
If you are running Tracetest with Docker, and Tracetest's service name is `tracetest`, then the endpoint might look like this `http://tracetest:4317` | ||
::: | ||
|
||
Additionally, add another config: | ||
|
||
- Set the `exporter` to `otlp/dash0` | ||
- Set the `endpoint` to your Dash0 incress like: `ingress.eu-west-1.aws.dash0.com:4317` | ||
|
||
```yaml | ||
# collector.config.yaml | ||
|
||
# If you already have receivers declared, you can just ignore | ||
# this one and still use yours instead. | ||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
|
||
processors: | ||
batch: | ||
timeout: 100ms | ||
|
||
exporters: | ||
logging: | ||
verbosity: detailed | ||
# OTLP for Tracetest | ||
otlp/tracetest: | ||
endpoint: tracetest:4317 # Send traces to Tracetest. Read more in docs here: https://docs.tracetest.io/configuration/connecting-to-data-stores/opentelemetry-collector | ||
tls: | ||
insecure: true | ||
# OTLP for Dash0 | ||
otlp/dash0: | ||
endpoint: ingress.eu-west-1.aws.dash0.com:4317 | ||
headers: | ||
Authorization: "Auth Token" | ||
service: | ||
pipelines: | ||
traces/tracetest: # Pipeline to send data to Tracetest | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [logging, otlp/tracetest] | ||
traces/Dash0: # Pipeline to send data to Dash0 | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [logging, otlp/dash0] | ||
``` | ||
## Configure Tracetest to Use Dash0 as a Trace Data Store | ||
Configure your Tracetest instance to expose an `otlp` endpoint to make it aware it will receive traces from the OpenTelemetry Collector. This will expose Tracetest's trace receiver on port `4317`. | ||
|
||
## Connect Tracetest to Dash0 with the Web UI | ||
|
||
In the Web UI, (1) open Settings, and, on the (2) Trace Ingestion tab, select (3) Dash0. | ||
|
||
![Trace Ingestion Settings](../../img/08132024/app.tracetest.io_organizations_at4CxvjIg_environments_ttenv_172de56e3dcbba9b_settings_tab=dataStore_dynatrace.png) | ||
|
||
## Connect Tracetest to Dash0 with the CLI | ||
|
||
Or, if you prefer using the CLI, you can use this file config. | ||
|
||
```yaml | ||
type: DataStore | ||
spec: | ||
name: Dash0 pipeline | ||
type: dash0 | ||
default: true | ||
``` | ||
|
||
Proceed to run this command in the terminal and specify the file above. | ||
|
||
```bash | ||
tracetest apply datastore -f my/data-store/file/location.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
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
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
Oops, something went wrong.