Skip to content

Instantly share code, notes, and snippets.

View danhurwit's full-sized avatar

Dan Hurwit danhurwit

View GitHub Profile
# Privacy Policy — Two Barns Studios Ops
**Effective date:** June 17, 2026
This Privacy Policy describes how the Two Barns Studios Ops application ("the App")
handles data. The App is a private, internal business-management tool operated by
Two Barns Studios ("we", "us") for our own use. It is not offered to the public.
## Who this applies to
The App is used solely by the owner of Two Barns Studios to manage and report on our own
# End User License Agreement (EULA) — Two Barns Studios Ops
**Effective date:** June 17, 2026
This End User License Agreement ("Agreement") governs use of the Two Barns Studios Ops
application ("the App"), a private, internal business-management tool operated by
Two Barns Studios ("we", "us").
## 1. License
The App is for the sole, internal use of Two Barns Studios. It is not licensed,
(function executeRule(current, previous /*null when async*/) {
try {
var r = new sn_ws.RESTMessageV2();
gs.info("Incident Details: Number=" + current.getValue("number"));
r.setEndpoint("https://ingest.lightstep.com/v1/events?api_key={token}");
r.setHttpMethod("POST");
r.setRequestHeader("Content-Type", "application/json");
r.setRequestHeader("Accept", "*/*");
with WEBHOOK_REQUEST_DURATION_HISTOGRAM.labels(
SHIPPO_RATES_METRIC_LABEL
).time():
try:
response: Response = requests.post(
url=ENDPOINT_URL,
json=request_payload.dict(),
headers=SHIPPO_HEADERS,
timeout=SHIPPO_TIMEOUT_SECONDS,
)
import json
import string
import time
import requests
import random
HEADERS = 'target\tstatus_code\thealthy\thostName\tstart_time\tpayloadsize\tduration\n'
RESULT_STR_FORMAT = '{}\t{}\t{}\t{}\t{}\t{}\t{}\n'
import operator
def print_span(span):
duration = span.end_time - span.start_time
value = ' ' * span.start_time + '-' * duration
print(value)
def print_nested_spans(parent_id, spans):