Skip to content

Commit b369462

Browse files
jjacobson93github-actions[bot]rikinsk
authored andcommitted
docs: Added DataDog trace documentation for Cloud
PR-URL: hasura/graphql-engine-mono#4421 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Rikin Kachhia <[email protected]> GitOrigin-RevId: 5791a4c952a96885ac3c3ec3373436f180778115
1 parent dcb8f7a commit b369462

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

docs/docs/graphql/cloud/metrics/integrations/datadog.mdx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import Thumbnail from "@site/src/components/Thumbnail";
1717

1818
## Introduction
1919

20-
You can export metrics and operation logs of your Hasura Cloud project to your organisation's Datadog dashboard. This can be configured on the integrations tab on the project's setting page.
20+
You can export metrics, operation logs and traces of your Hasura Cloud project to your organisation's Datadog dashboard. This can be configured on the integrations tab on the project's setting page.
2121

2222
:::info Note
2323

24-
Datadog Integration is only available for Hasura Cloud projects on the `Standard` (pay-as-you-go) tier and above.
24+
Datadog Integration is only available for Hasura Cloud projects on the `Standard` (pay-as-you-go) tier and above.
2525

2626
:::
2727

@@ -48,6 +48,7 @@ Select the Datadog API region and enter the Datadog API key (can be retrieved by
4848
<Thumbnail
4949
src="/img/graphql/cloud/metrics/configure-datadog.png"
5050
alt="Configure Datadog Integration"
51+
width="500px"
5152
/>
5253

5354
After adding appropriate values, click `Save`.
@@ -90,7 +91,7 @@ To view only logs exported by Hasura Cloud, filter your logs using `host` and/or
9091

9192
:::info Note
9293

93-
Datadog allows ingestion of logs with maximum size 256kB for a single log. If a log exceeds this limit, Datadog will truncate the log at 256kB.
94+
Datadog allows ingestion of logs with maximum size 256kB for a single log. If a log exceeds this limit, Datadog will truncate the log at 256kB.
9495

9596
:::
9697

@@ -123,3 +124,16 @@ Select the graphs you want to view from the metrics explorer. Alternatively, sel
123124
alt="Metrics successfully exported to Datadog"
124125
width="1146px"
125126
/>
127+
128+
## View traces
129+
130+
Along with the logs and metrics, query tracing is exported to DataDog. From your DataDog metrics page, `APM` > `Traces` will show you a live search of ingested trace data, with each entry of the output table showing the duration of the operation.
131+
132+
Clicking on an entry from the table will show the details about the trace, including a flame graph, which contains a visual representation of where the operation spent its execution over time. For example, in this case a query took 2.31 milliseconds in total, of which 758 microseconds was the actual Postgres database processing the query.
133+
134+
<Thumbnail
135+
src="/img/graphql/cloud/metrics/datadog-trace-flame-graph.png"
136+
alt="Flame graph for a trace entry in Datadog"
137+
width="1146px"
138+
/>
139+
36.3 KB
Loading

0 commit comments

Comments
 (0)