Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
138 changes: 69 additions & 69 deletions docs/assets/scripts/website.py → assets/scripts/website.py
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
import datetime
import time
import random
from bottle import route, run, template
# --------------------------------------------------------------
# Import the zipkin module as a namespace
#
import py_zipkin.zipkin as zp
# --------------------------------------------------------------
# Send our timing data to the zipkin server. Make sure that
# ZIPKIN_SERVER is set to the IP of the ZipKin server.
# Change the localhost ip 127.0.0.1 to the ip of the
# ZipKin server.
#
def http_transport(encoded_span):
import requests
ZIPKIN_SERVER = "127.0.0.1"
r = requests.post(
'http://%s:9411/api/v1/spans' % ZIPKIN_SERVER,
data = encoded_span,
headers = {'Content-Type': 'application/x-thrift'},
)
assert r.status_code == 202, "ERROR: span not accepted by Zipkin"
# ---------------------------------------------------------------------
# When this function is called within the context of its span, defined
# in the index page, it will label this function as external_service1.
#
@zp.zipkin_span(service_name='webapp', span_name='external_service1')
def external_service1():
time.sleep( random.randint(1,2))Make 1 modification to the file.
# ---------------------------------------------------------------------
# When this function is called within the context of its span, defined
# in the index page, it will label this function as external_service2.
#
@zp.zipkin_span(service_name='webapp', span_name='external_service2')
def external_service2():
time.sleep( random.randint(1,3))
@route('/')
def index():
now = datetime.datetime.today()
# ---------------------------------------------------------------------
# Create the span "webapp" and its callback handler - "http_transport"
# Notice that both of our functions are called within the body of the
# zipkin_span.
#
with zp.zipkin_span(
service_name ="webapp",
span_name='index',
transport_handler = http_transport,
port=5000,
sample_rate= 100):
external_service1()
time.sleep(random.randint(1,3))
external_service2()
later = datetime.datetime.today()
return template('<b>Started {{today}} but finished {{later}}</b>!',
today=now.ctime(), later=later.ctime())
run(host='localhost', port=8080, reloader=True)
import datetime
import time
import random
from bottle import route, run, template

# --------------------------------------------------------------
# Import the zipkin module as a namespace
#
import py_zipkin.zipkin as zp

# --------------------------------------------------------------
# Send our timing data to the zipkin server. Make sure that
# ZIPKIN_SERVER is set to the IP of the ZipKin server.
# Change the localhost ip 127.0.0.1 to the ip of the
# ZipKin server.
#
def http_transport(encoded_span):
import requests
ZIPKIN_SERVER = "127.0.0.1"

r = requests.post(
'http://%s:9411/api/v1/spans' % ZIPKIN_SERVER,
data = encoded_span,
headers = {'Content-Type': 'application/x-thrift'},
)

assert r.status_code == 202, "ERROR: span not accepted by Zipkin"

# ---------------------------------------------------------------------
# When this function is called within the context of its span, defined
# in the index page, it will label this function as external_service1.
#
@zp.zipkin_span(service_name='webapp', span_name='external_service1')
def external_service1():
time.sleep( random.randint(1,2))Make 1 modification to the file.

# ---------------------------------------------------------------------
# When this function is called within the context of its span, defined
# in the index page, it will label this function as external_service2.
#
@zp.zipkin_span(service_name='webapp', span_name='external_service2')
def external_service2():
time.sleep( random.randint(1,3))

@route('/')
def index():
now = datetime.datetime.today()

# ---------------------------------------------------------------------
# Create the span "webapp" and its callback handler - "http_transport"
# Notice that both of our functions are called within the body of the
# zipkin_span.
#
with zp.zipkin_span(
service_name ="webapp",
span_name='index',
transport_handler = http_transport,
port=5000,
sample_rate= 100):
external_service1()
time.sleep(random.randint(1,3))
external_service2()

later = datetime.datetime.today()

return template('<b>Started {{today}} but finished {{later}}</b>!',
today=now.ctime(), later=later.ctime())

run(host='localhost', port=8080, reloader=True)
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions ci/vale/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ aniszczyk
anonymization
anonymize
anonymizing
anotheruser
ansi
ansible
ansible's
Expand Down Expand Up @@ -994,6 +995,7 @@ host1
host2
hostname
hostnames
hotcopy
hotfix
hotfixes
hotlink
Expand Down Expand Up @@ -1331,6 +1333,8 @@ li181
li263
lib32
libaprutil1
libapache
libapache2
libc
libc6
libcontainer
Expand Down Expand Up @@ -2010,6 +2014,7 @@ procfile
procmail
procs
productpage
projectname
prolog
promlens
promo_codes
Expand Down Expand Up @@ -2321,6 +2326,7 @@ setguid
setsebool
setters
setuid
setuuid
setuptools
Severalnines
sfadmin
Expand Down Expand Up @@ -2491,6 +2497,9 @@ sury
suse
Sussman
svn
svnadmin
svnserve
svnuser
swappable
swappiness
symantec
Expand Down Expand Up @@ -2981,8 +2990,10 @@ yoast
yourdomain
yourdomainorsubdomainhere
yourname
yourserver
yourservice
yoursite
yourusername
youtube
yubico
yubikey
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading