Skip to content

Instantly share code, notes, and snippets.

@afoninsky
Last active November 17, 2020 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afoninsky/7496c4bb89cc461aa33ffeb64318a634 to your computer and use it in GitHub Desktop.
Save afoninsky/7496c4bb89cc461aa33ffeb64318a634 to your computer and use it in GitHub Desktop.
exporters:
jaeger/jaeger:
endpoint: http://jaeger-collector:14250
insecure: true
logging:
loglevel: debug
otlp/tempo:
endpoint: http://tempo:55680
insecure: true
extensions:
health_check: {}
processors:
batch: {}
memory_limiter:
ballast_size_mib: 819
check_interval: 5s
limit_mib: 1638
spike_limit_mib: 512
queued_retry: {}
receivers:
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
thrift_http:
endpoint: 0.0.0.0:14268
otlp:
protocols:
grpc: null
http: null
zipkin:
endpoint: 0.0.0.0:9411
service:
extensions:
- health_check
pipelines:
traces:
exporters:
- logging
processors:
- memory_limiter
- batch
- queued_retry
receivers:
- otlp
- jaeger
- zipkin
InstrumentationLibrarySpans #0
Span #0
Trace ID : 00000000000000008204f55e015e1d76
Parent ID : 8204f55e015e1d76
ID : 4e5b64e6e5c41181
Name : /GetCart
Kind : SPAN_KIND_UNSPECIFIED
Start time : 2020-11-16 16:19:46.526 +0000 UTC
End time : 2020-11-16 16:19:46.566 +0000 UTC
Attributes:
-> http.url: STRING(http://cartservice/GetCart)
-> load_generator.seq_num: INT(238)
-> region: STRING(us-east-1)
-> http.method: STRING(GET)
-> version: STRING(v5)
Span #1
Trace ID : 0000000000000000211742d75e178cb2
Parent ID : 211742d75e178cb2
ID : 3733b9d1f36aefa1
Name : /GetCart
Kind : SPAN_KIND_UNSPECIFIED
Start time : 2020-11-16 16:19:46.776 +0000 UTC
End time : 2020-11-16 16:19:46.836 +0000 UTC
Attributes:
-> http.url: STRING(http://cartservice/GetCart)
-> load_generator.seq_num: INT(242)
-> region: STRING(us-east-1)
-> http.method: STRING(GET)
-> version: STRING(v5)
Span #2
Trace ID : 0000000000000000a21196f687cfbbfa
Parent ID : a21196f687cfbbfa
ID : bca8accdcac95d2c
Name : /GetCart
Kind : SPAN_KIND_UNSPECIFIED
Start time : 2020-11-16 16:19:47.046 +0000 UTC
End time : 2020-11-16 16:19:47.153 +0000 UTC
Attributes:
-> http.url: STRING(http://cartservice/GetCart)
-> load_generator.seq_num: INT(246)
-> region: STRING(us-east-1)
-> http.method: STRING(GET)
-> version: STRING(v5)
Span #3
Trace ID : 0000000000000000f7e37ec635def3b7
Parent ID : f7e37ec635def3b7
ID : 261cbf66408247c5
Name : /GetCart
Kind : SPAN_KIND_UNSPECIFIED
Start time : 2020-11-16 16:19:47.291 +0000 UTC
End time : 2020-11-16 16:19:47.483 +0000 UTC
Attributes:
-> http.url: STRING(http://cartservice/GetCart)
-> load_generator.seq_num: INT(250)
-> region: STRING(us-east-1)
-> http.method: STRING(GET)
-> version: STRING(v5)
Span #4
Trace ID : 00000000000000000474f9153ef5d0c3
Parent ID : 0474f9153ef5d0c3
ID : ac51b870ee3d2cd1
Name : /GetCart
Kind : SPAN_KIND_UNSPECIFIED
Start time : 2020-11-16 16:19:47.529 +0000 UTC
End time : 2020-11-16 16:19:47.68 +0000 UTC
Attributes:
-> http.url: STRING(http://cartservice/GetCart)
-> load_generator.seq_num: INT(255)
-> region: STRING(us-east-1)
-> http.method: STRING(GET)
-> version: STRING(v5)
Span #5
Trace ID : 00000000000000004cbea510629fd90f
Parent ID : 4cbea510629fd90f
ID : 24d8f7fdac46a958
Name : /GetCart
Kind : SPAN_KIND_UNSPECIFIED
Start time : 2020-11-16 16:19:47.746 +0000 UTC
End time : 2020-11-16 16:19:47.941 +0000 UTC
Attributes:
-> http.url: STRING(http://cartservice/GetCart)
-> load_generator.seq_num: INT(263)
-> region: STRING(us-east-1)
-> http.method: STRING(GET)
-> version: STRING(v5)
git clone https://github.com/Omnition/synthetic-load-generator /tmp/generator
cd /tmp/generator
mvn package
# opentelemetry-collector - traces are visible (see collector-opentelemetry.log) but don't appear in downstream receivers
export JAEGER_HOST="opentelemetry-collector"
java -jar target/SyntheticLoadGenerator-1.0-SNAPSHOT-jar-with-dependencies.jar --paramsFile ./topologies/hipster-shop.json --jaegerCollectorUrl http://$JAEGER_HOST:14268
# jaeger collector - traces sent directly to downsteream receiver appear in the ui
export JAEGER_HOST="jaeger-collector"
java -jar target/SyntheticLoadGenerator-1.0-SNAPSHOT-jar-with-dependencies.jar --paramsFile ./topologies/hipster-shop.json --jaegerCollectorUrl http://$JAEGER_HOST:14268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment