This file contains hidden or 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
| 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): |
This file contains hidden or 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
| 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' |
This file contains hidden or 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
| 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, | |
| ) |
This file contains hidden or 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
| (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", "*/*"); |
This file contains hidden or 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
| # 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, |
This file contains hidden or 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
| # 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 |