docs/SCARF.md
This document outlines our implementation details for Scarf which provides usage and download analytics for the Jaeger project.
The following CNAMES were setup in Netlify for us to utilize the services:
scarf.jaegertracing.io -> static.scarf.sh (used for tracking pixel on webpages)cr.jaegertracing.io -> gateway.scarf.sh (used for container registries)download.jaegertracing.io -> gateway.scarf.sh (used for file downloads of Jaeger artifacts)We also had to add the following TXT verification records:
The following setup has been done on Scarf. Previously what was the download link for example https://github.com/jaegertracing/jaeger/releases/download/v1.69.0/jaeger-2.6.0-darwin-amd64.tar.gz should now be https://download.jaegertracing.io/v1.69.0/jaeger-2.6.0-darwin-amd64.tar.gz for us to get analytics.
For Docker containers the previous command : docker pull jaegertracing/all-in-one should now be docker pull cr.jaegertracing.io/jaegertracing/all-in-one
www.jaegertracing.io on NetlifyInjecting the Scarf analytics tracking pixel to the www.jaegertracing.io website hosted on Netlify is done using Netlify's Snippet Injection feature.
Log in to Netlify:
www.jaegertracing.io site configuration.Select Your Site:
www.jaegertracing.io.Go to Project Configuration:
www.jaegertracing.io site dashboard, click on "Site settings" (you'll usually find this at the top right).Access Build & Deploy Settings:
Find Snippet Injection:
Configure the Scarf Snippet:
Snippet Name: Give it a clear name like Scarf Tracking Pixel.
Position: Choose "Before </body>". This is generally a good spot for image-based pixels as it doesn't block the initial page render.
Snippet Body: Paste the following HTML code block into this text area. The pixel ID cf7517a5-bfa0-4796-b760-1bb4e302e541 is already included.
Save the Snippet:
Once you save, Netlify will automatically inject this image tag into the HTML pages of www.jaegertracing.io. You won't need to trigger a new deployment. Scarf.sh should start receiving analytics data from the website shortly after.
To verify the pixel is loading correctly:
www.jaegertracing.io in a browser.https://scarf.jaegertracing.io/a.png.