---
title: "Steganography at scale: Embedding share URLs in Datadog widget screenshots"
description: "Datadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID."
url: "https://swe.quest/articles/steganography-at-scale-embedding-share-urls-in-datadog-widget-screenshots-c180eafbb38c64ee"
canonical: "https://www.datadoghq.com/blog/engineering/steganography-at-scale/"
source: "Datadog Engineering"
published: "2026-04-21"
difficulty: "medium"
kind: "Case study"
reading_minutes: 20
tags: ["frontend","caching","observability","algorithms"]
---

# Steganography at scale: Embedding share URLs in Datadog widget screenshots

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2026-04-21, 20 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/steganography-at-scale/](https://www.datadoghq.com/blog/engineering/steganography-at-scale/)

## Summary

Datadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID. A first scheme packing a byte per pixel via RGB offsets broke under display color-profile conversion (e.g., DCI-P3 shifting channels by ±1) and was sometimes visible. The final design uses fuzzy encoding: ±3 offsets on red and green carry 2 bits per pixel, decoded within tolerance ranges, with blue-shifted sentinel pixels marking a 34-pixel watermark. The system also handles device pixel ratios and copy-paste workflows, and renders over a billion watermarks per day with an estimated ~1 in 37 million collision probability.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Prerequisites

- RGB color model
- Redis caching ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- device pixel ratio

## Keywords

Datadog, steganography, Redis, DCI-P3, Device Pixel Ratio, RUM

## Related posts

- [How we built the Datadog heatmap to visualize distributions over time at arbitrary scale](https://swe.quest/articles/how-we-built-the-datadog-heatmap-to-visualize-distributions-over-time-at-771a93f5eee96301.md): Datadog Engineering · 2024-05-01 · Medium · 13 min read · Observability, Frontend, Web performance, Data structures
  Datadog's heatmap visualizes DDSketch-backed distribution metrics over time, revealing multimodal behavior (such as pulsing benchmark traffic or health-check modes) that percentile lines hide.
- [Application Metrics caught my broken size estimator](https://swe.quest/articles/application-metrics-caught-my-broken-size-estimator-b4c941e581ff6e70.md): Sentry · 2026-09-01 · Medium · 14 min read · Observability, Video & media, AI for coding, Frontend
  Instrumenting Cliparr Convert, an in-browser video converter built on MediaBunny/WebCodecs, with Sentry Application Metrics exposed an AI-written size estimator that scaled source size by resolution and produced files up to 83% larger than predicted.
- [How Datadog uses Datadog to gain visibility into the Datadog user experience](https://swe.quest/articles/how-datadog-uses-datadog-to-gain-visibility-into-the-datadog-user-experience-2c669c8165203399.md): Datadog Engineering · 2022-02-22 · Easy · 7 min read · Product engineering, Design systems, Observability, Frontend
  Datadog's product designers used the company's own Real User Monitoring and Logs to make three data-backed UI decisions.
- [Private Click Measurement: Conversion Fraud Prevention and Replacement For Tracking Pixels](https://swe.quest/articles/private-click-measurement-conversion-fraud-prevention-and-replacement-for-769973c036d0d7a0.md): WebKit · 2022-04-11 · Medium · 5 min read · Privacy, Ads, Browsers, Cryptography
  Private Click Measurement in iOS/iPadOS 15.4 and macOS Monterey 12.3 adds conversion fraud prevention, letting merchant sites sign unlinkable RSA blind-signature tokens.
- [Building text animations for Instagram Stories](https://swe.quest/articles/building-text-animations-for-instagram-stories-10ca8ff4e07dc141.md): Meta Engineering · 2022-07-18 · Medium · 9 min read · Mobile, Product engineering, Debugging
  Instagram's 2020 Stories text styles and animations required solving cross-platform font delivery and Unicode-aware rendering.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
