Reduce set of data centers and add some ip addresses
This commit is contained in:
@@ -50,15 +50,11 @@ app.use((req, res, next) => {
|
||||
|
||||
app.use((req, res, next) => {
|
||||
let dcs = [
|
||||
"asia-northeast2",
|
||||
"asia-south1",
|
||||
"europe-west3",
|
||||
"us-east1",
|
||||
"us-east2",
|
||||
"us-east3",
|
||||
"us-east4",
|
||||
"us-central1",
|
||||
"us-west1",
|
||||
"us-west2",
|
||||
"eu-west3",
|
||||
"eu-west4"
|
||||
"us-west1"
|
||||
];
|
||||
let span = instana.currentSpan();
|
||||
span.annotate('custom.sdk.tags.datacenter', dcs[Math.floor(Math.random() * dcs.length)]);
|
||||
|
@@ -40,15 +40,11 @@ app.use((req, res, next) => {
|
||||
|
||||
app.use((req, res, next) => {
|
||||
let dcs = [
|
||||
"asia-northeast2",
|
||||
"asia-south1",
|
||||
"europe-west3",
|
||||
"us-east1",
|
||||
"us-east2",
|
||||
"us-east3",
|
||||
"us-east4",
|
||||
"us-central1",
|
||||
"us-west1",
|
||||
"us-west2",
|
||||
"eu-west3",
|
||||
"eu-west4"
|
||||
"us-west1"
|
||||
];
|
||||
let span = instana.currentSpan();
|
||||
span.annotate('custom.sdk.tags.datacenter', dcs[Math.floor(Math.random() * dcs.length)]);
|
||||
|
@@ -28,15 +28,11 @@ var (
|
||||
errorPercent int
|
||||
|
||||
dataCenters = []string{
|
||||
"asia-northeast2",
|
||||
"asia-south1",
|
||||
"europe-west3",
|
||||
"us-east1",
|
||||
"us-east2",
|
||||
"us-east3",
|
||||
"us-east4",
|
||||
"us-central1",
|
||||
"us-west1",
|
||||
"us-west2",
|
||||
"eu-west3",
|
||||
"eu-west4",
|
||||
}
|
||||
)
|
||||
|
||||
|
@@ -8,6 +8,7 @@ from random import randint
|
||||
class UserBehavior(HttpUser):
|
||||
wait_time = between(2, 10)
|
||||
|
||||
# source: https://tools.tracemyip.org/search--ip/list
|
||||
fake_ip_addresses = [
|
||||
# white house
|
||||
"156.33.241.5",
|
||||
@@ -16,7 +17,13 @@ class UserBehavior(HttpUser):
|
||||
# Chicago
|
||||
"98.142.103.241",
|
||||
# Los Angeles
|
||||
"192.241.230.151"
|
||||
"192.241.230.151",
|
||||
# Berlin
|
||||
"46.114.35.116",
|
||||
# Singapore
|
||||
"52.77.99.130",
|
||||
# Sydney
|
||||
"60.242.161.215"
|
||||
]
|
||||
|
||||
def on_start(self):
|
||||
|
@@ -9,15 +9,11 @@ use Psr\Log\LoggerInterface;
|
||||
class InstanaDataCenterListener
|
||||
{
|
||||
private static $dataCenters = [
|
||||
"asia-northeast2",
|
||||
"asia-south1",
|
||||
"europe-west3",
|
||||
"us-east1",
|
||||
"us-east2",
|
||||
"us-east3",
|
||||
"us-east4",
|
||||
"us-central1",
|
||||
"us-west1",
|
||||
"us-west2",
|
||||
"eu-west3",
|
||||
"eu-west4"
|
||||
"us-west1"
|
||||
];
|
||||
|
||||
/**
|
||||
|
@@ -27,15 +27,11 @@ import java.util.Random;
|
||||
public class ShippingServiceApplication implements WebMvcConfigurer {
|
||||
|
||||
private static final String[] DATA_CENTERS = {
|
||||
"asia-northeast2",
|
||||
"asia-south1",
|
||||
"europe-west3",
|
||||
"us-east1",
|
||||
"us-east2",
|
||||
"us-east3",
|
||||
"us-east4",
|
||||
"us-central1",
|
||||
"us-west1",
|
||||
"us-west2",
|
||||
"eu-west3",
|
||||
"eu-west4"
|
||||
"us-west1"
|
||||
};
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@@ -43,15 +43,11 @@ app.use((req, res, next) => {
|
||||
|
||||
app.use((req, res, next) => {
|
||||
let dcs = [
|
||||
"asia-northeast2",
|
||||
"asia-south1",
|
||||
"europe-west3",
|
||||
"us-east1",
|
||||
"us-east2",
|
||||
"us-east3",
|
||||
"us-east4",
|
||||
"us-central1",
|
||||
"us-west1",
|
||||
"us-west2",
|
||||
"eu-west3",
|
||||
"eu-west4"
|
||||
"us-west1"
|
||||
];
|
||||
let span = instana.currentSpan();
|
||||
span.annotate('custom.sdk.tags.datacenter', dcs[Math.floor(Math.random() * dcs.length)]);
|
||||
|
Reference in New Issue
Block a user