This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# set -x | |
while true | |
do | |
# strip out dashes | |
# cut it down to 64 bits aka 8 bytes aka 16 chars | |
SPAN_ID=$(uuid | tr -d '-' | cut -c1-16) | |
TRACE_ID=$(uuid | tr -d '-' | cut -c1-16) | |
# require milliseconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Code snippet for momentry switch processing | |
* with debounce | |
*/ | |
// debouce period in millis | |
#define DELAY 200 | |
bool switched; | |
unsigned long delay; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Instana EUM Injector | |
// @namespace http://instana.com/ | |
// @version 0.1 | |
// @description Add EUM to any site | |
// @author Steve Waterworth | |
// @include http://www.acme.com/* | |
// @include https://www.acme.com/* | |
// @run-at document-start | |
// @grant none |