Skip to content

Use case guide for Log Workspaces in the retail industry #29504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

estherk15
Copy link
Contributor

@estherk15 estherk15 commented May 22, 2025

What does this PR do? What is the motivation?

  • Add a guide that walks through a retail use case
  • DOCS-10751

Merge instructions

Merge readiness:

  • Ready for merge

For Datadog employees:
Merge queue is enabled in this repo. Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). Without this format, your pull request will not pass in CI, the GitLab pipeline will not run, and you won't get a branch preview. Getting a branch preview makes it easier for us to check any issues with your PR, such as broken links.

If your branch doesn't follow this format, rename it or create a new branch and PR.

To have your PR automatically merged after it receives the required reviews, add the following PR comment:

/merge

Additional notes

@estherk15 estherk15 requested a review from a team as a code owner May 22, 2025 19:50
@estherk15 estherk15 added the WORK IN PROGRESS No review needed, it's a wip ;) label May 22, 2025
@github-actions github-actions bot added the Images Images are added/removed with this PR label May 22, 2025
@estherk15 estherk15 changed the base branch from master to yuliyambg/workspaces_retail_example May 22, 2025 19:51
@estherk15 estherk15 requested review from a team and datamarmot as code owners May 22, 2025 19:51
@estherk15 estherk15 changed the base branch from yuliyambg/workspaces_retail_example to master May 22, 2025 19:51
@estherk15 estherk15 removed request for a team May 22, 2025 19:52
Copy link
Contributor

github-actions bot commented May 22, 2025

@estherk15 estherk15 removed the WORK IN PROGRESS No review needed, it's a wip ;) label May 27, 2025
@joepeeples
Copy link
Contributor

joepeeples commented May 27, 2025

Opened Jira card DOCS-11030 for an editorial review.

@joepeeples joepeeples added the editorial review Waiting on a more in-depth review label May 27, 2025
Copy link
Contributor

github-actions bot commented May 28, 2025

📝 Documentation Team Review Required

This pull request requires approval from the @DataDog/documentation team before it can be merged.

Please ensure your changes follow our documentation guidelines and wait for a team member to review and approve your changes.

Copy link
Contributor

@janine-c janine-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, Esther! I made some comments about clarifying the action items for customers to help them follow along, but that's without having a ton of context about Log Workspaces, so it may or may not make sense 😅 Let me know what you think and how I can help with getting this out the door, as always!


### 1. Inventory data source

In this example, configure a logs query to filter for an inventory service, including stock levels, product IDs, and threshold levels for each store location.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this is a guide that says it will demonstrate how to do something, I found these parts a bit confusing. It's a little hard to put my finger on why, but I think it's because they look like examples of something that is completed, which isn't necessarily inappropriate for docs, but the context around it made me expect instructions with some more detail about what a user is supposed to do.

It could also be because the headings made me think that the instructions would be about setting up data sources, but these look like filters to return data, which to me feel like different things. Maybe they feel like more similar concepts when you're more familiar with the source material? If I were a user who were trying to mimic your use case, I think I'd be confused about whether I was supposed to set up the actual systems that send my store's data to Datadog, or if this guide was just about displaying that data in a workspace. Maybe it just needs some more explicit linking to docs that will more clearly take them through any of the processes they find unfamiliar?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After finishing the page and coming back, I noticed later on how useful it was to include queries that are copyable, which is a nice handy sign that users are supposed to take that part and use it themselves. I'm not sure what would be relevant in these examples, but similar "hey use this!" examples for stuff like search terms might make it easier for customers to understand what you've done so they can start mimicking it themselves.


{{< img src="/logs/workspace/use_cases/analyze_inventory_across_regions/retail_analysis_cell.png" alt="SQL analysis results showing products with low stock levels and high sales quantities" caption="Analysis cell results identifying products that need restocking based on low inventory and high sales volume." style="width:100%;" >}}

{{% collapse-content title="Query breakdown" level="h4" expanded=false %}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might consider putting the query breakdown right next to the query rather than splitting them up with an image - that way, if someone is confused, they can give themselves a little more context sooner :)

{{< img src="/logs/workspace/use_cases/analyze_inventory_across_regions/retail_location_analysis_cell.png" alt="SQL query joining inventory data with store location reference table to analyze sales by geographic region" style="width:100%;" >}}

{{% collapse-content title="Query breakdown" level="h4" expanded=false %}}
This query:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I liked the specificity of how the previous query was explained, so I could understand what each operator was doing. I don't think it's strictly necessary to do the exact same thing here again, but for someone who needs a query breakdown, the descriptions of what the different functions do could help them tweak it for their needs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial review Waiting on a more in-depth review Images Images are added/removed with this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants