Skip to content

Commit

Permalink
docs: Update docs for cloud v3 (dagger#9450)
Browse files Browse the repository at this point in the history
* docs: Update cloud docs for v3

Signed-off-by: Vikram Vaswani <[email protected]>

* Updated image

Signed-off-by: Vikram Vaswani <[email protected]>

* Updated images

Signed-off-by: Vikram Vaswani <[email protected]>

* Updated images

Signed-off-by: Vikram Vaswani <[email protected]>

---------

Signed-off-by: Vikram Vaswani <[email protected]>
  • Loading branch information
vikram-dagger authored Feb 10, 2025
1 parent a0ce5c9 commit d8116f1
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 9 deletions.
6 changes: 2 additions & 4 deletions docs/current_docs/configuration/cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export DAGGER_CLOUD_TOKEN={your token}

To connect to Dagger Cloud from a CI environment, you require a Dagger Cloud token. Dagger Cloud creates this token automatically when you sign up.

To find your token, browse to the **Organization Settings** page, by clicking your profile photo in the left sidebar and then clicking **Organization Settings**. Select the **Configuration** tab. You can also use this URL pattern: `https://dagger.cloud/{Your Org Name}/settings?tab=configuration`
To find your token, navigate to the organization settings page using the cogwheel icon in the top navigation bar. Under the `Tokens` sub-menu, click the eye icon to view the token. You can also use this URL pattern: `https://v3.dagger.cloud/{Your Org Name}/settings?tab=Tokens`

![Get token](/img/current_docs/configuration/get-token.png)

Expand Down Expand Up @@ -196,9 +196,7 @@ Dagger Cloud automatically detects if the traces produced by your pipelines orig
a CI system and a public repository. When both conditions are met, Dagger Cloud allows
public access to these traces without requiring an invitation to the organization.

To modify this default setting, navigate to the organization settings page.
Under the `Configuration` tab, toggle the `Trace Repository Visibility` switch to control access
to trace data as needed.
To modify this default setting, navigate to the organization settings page using the cogwheel icon in the top navigation bar. Under the `Visibility` sub-menu, click the eye icon to toggle public access to trace data as needed.

![public traces](/img/current_docs/api/public-traces.png)

Expand Down
20 changes: 15 additions & 5 deletions docs/current_docs/features/visualization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Here's an example of it in action:
Dagger uses [OpenTelemetry](https://opentelemetry.io/) as its telemetry protocol. Each Dagger Function call is represented as an [OpenTelemetry trace](https://opentelemetry.io/docs/concepts/signals/traces/). The operations performed by the Dagger Function are represented as [OpenTelemetry spans](https://opentelemetry.io/docs/concepts/signals/traces/#spans). A span can emit several effects, which are the operations generated in the span. For example, the `withDirectory()` span generates all the necessary operations to provide a directory with excluded and included elements. For this, it first loads a directory, and then creates a new one from scratch inside the container, generating two distinct steps (effects).
:::

Dagger is aware of the context it runs in. The Dagger Cloud dashboard classifies Traces depending on whether you triggered a run from your local development host or from your CI environment. You can select the appropriate view from the dashboard sidebar. Here's an example showing Traces generated in a CI environment:
Dagger is aware of the context it runs in. The Dagger Cloud dashboard classifies Traces depending on whether you triggered a run from your local development host or from your CI environment. You can select the appropriate view from the dashboard. Here's an example showing Traces generated in both CI and local environments:

![Traces list](/img/current_docs/features/trace-list.png)

Expand All @@ -71,23 +71,33 @@ Here's a quick summary of what you'll see for each Trace group:
- Repository name
- Commit metadata, including comment and commit author
- Indication of the run status: in progress, succeeded, or failed
- The command used
- The run start time
- The run duration

:::important
All of the information listed above may not be available for a specific group, as it differs depending on whether the Trace is generated by a local run or a CI run. When Dagger runs in a CI environment like GitHub, GitLab, CircleCI, or Jenkins, additional Trace metadata is displayed based on the Git repository information available. Traces that run in CI but contain incomplete or no Git metadata are considered "orphaned" and will not be part of a group.
:::

You can drill down into the details of a specific group by clicking it. This directs you to a list of Traces, together with detailed status and duration metadata for each. Each Dagger Function call is represented as a separate Trace, as shown below:
You can drill down into the details of a specific group by clicking it. This directs you to a timeline view consisting of a list of Traces, together with detailed status and duration metadata for each. Each Dagger Function call is represented as a separate Trace, as shown below:

![Trace details](/img/current_docs/features/trace-details.png)

With the timeline view you can:

- See exactly how long each Dagger Function in your pipeline takes. This helps identify bottlenecks and optimize your workflows for faster execution.
- See all Traces in a single unified view allowing you to easily drill down into individual Traces to understand their execution.
- Quickly pinpoint failed steps in the timeline and jump to their details immediately.

You can click any of the Traces in the list to see detailed logs for each Trace. The flame graph at the top of the Trace shows the operations performed by the Dagger Function, with a visual cue of how much time each operation represents of the total duration, as shown below:

![Trace log](/img/current_docs/features/trace-log.png)

If there are any errors, Dagger Cloud automatically surfaces the main error and error message in the list.
Steps that are currently in progress are highlighted with a blinking or yellow indicator. This gives you a real-time view of your Trace's activity and makes it clear which processes are active. Similarly, if a step has been cancelled, it's displayed with an orange indicator. This helps you quickly distinguish interruptions or cancelled jobs when viewing a Trace.

To make it easier to navigate through Trace logs (some of which can contain thousands of lines), you can quickly search for specific keywords within a Trace log. In addition, breadcrumbs let you see the complete context of any span within the Trace all the way back to the root, allowing you to quickly jump between different parts of the log.

![Trace log](/img/current_docs/features/trace-nav.png)

If there are any errors, they are now highlighted in a separate section in the Trace log, making them easier to spot immediately. The error view also provides more context around where and why the issue occurred. This means you can see not just the error, but also the related steps that led up to it.

![Trace error](/img/current_docs/features/trace-error.png)

Expand Down
Binary file modified docs/static/img/current_docs/api/public-traces.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/img/current_docs/configuration/get-token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/img/current_docs/features/trace-details.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/img/current_docs/features/trace-error.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/img/current_docs/features/trace-list.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/img/current_docs/features/trace-log.png
100644 → 100755
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.
Binary file modified docs/static/img/current_docs/quickstart/trace.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8116f1

Please sign in to comment.