Skip to content

Add Dynatrace RUM monitoring integration - #81

Merged
TimoStaudinger merged 1 commit into
mainfrom
claude/dynatrace-rum-setup-h3xmmy
Aug 21, 2026
Merged

Add Dynatrace RUM monitoring integration#81
TimoStaudinger merged 1 commit into
mainfrom
claude/dynatrace-rum-setup-h3xmmy

Conversation

@TimoStaudinger

@TimoStaudinger TimoStaudinger commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Integrates Dynatrace Real User Monitoring (RUM) into the application via an agentless JavaScript tag.

Changes

  • Created DynatraceRum component that conditionally loads the RUM script based on the NEXT_PUBLIC_DYNATRACE_SCRIPT_URL environment variable
  • Integrated the component into the root layout to inject monitoring on every page
  • Updated README with monitoring setup instructions

Implementation details

  • The RUM script is loaded with strategy="beforeInteractive" to ensure monitoring starts as early as possible
  • The component returns null when the environment variable is unset, allowing the feature to be disabled locally and in CI environments
  • Uses Next.js Script component with crossOrigin="anonymous" for proper CORS handling

Setup

Set NEXT_PUBLIC_DYNATRACE_SCRIPT_URL in Vercel to the src URL of the RUM JavaScript tag from the application's agentless monitoring setup in Dynatrace, then redeploy. No API token is required — the tag URL is public by design.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
timostaudinger-com Ready Ready Preview Aug 21, 2026 6:09pm

@TimoStaudinger
TimoStaudinger merged commit 620b921 into main Aug 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants