Skip to content

Instantly share code, notes, and snippets.

View yurishkuro's full-sized avatar

Yuri Shkuro yurishkuro

View GitHub Profile
@yurishkuro
yurishkuro / tracing.go
Created February 8, 2023 23:10
HotROD external baggage
func (tm *TracedServeMux) AddHandler(pattern string, handler http.Handler) {
middleware := nethttp.Middleware(tm.tracer, handler,
nethttp.MWSpanObserver(func(span opentracing.Span, r *http.Request) {
if !tm.copyBaggage {
return
}
bag := baggage.FromContext(r.Context())
for _, m := range bag.Members() {
span.SetBaggageItem(m.Key(), m.Value())
}
@yurishkuro
yurishkuro / graph-15-nodes.json
Created November 21, 2023 15:52
Dependencies 15 nodes
[
{
"parent": "node_0",
"child": "node_7",
"callCount": 4
},
{
"parent": "node_0",
"child": "node_13",
"callCount": 10
@yurishkuro
yurishkuro / gist:3f3e61048fe0e8a18ca0d584e7fb33b3
Last active November 24, 2024 15:26
Cassandra metrics: $ curl http://localhost:14269/metrics | grep cassandra | gh gist create
# HELP jaeger_cassandra_attempts_total attempts
# TYPE jaeger_cassandra_attempts_total counter
jaeger_cassandra_attempts_total{table="dependencies"} 0
jaeger_cassandra_attempts_total{table="duration_index"} 0
jaeger_cassandra_attempts_total{table="operation_names_v2"} 0
jaeger_cassandra_attempts_total{table="service_name_index"} 0
jaeger_cassandra_attempts_total{table="service_names"} 0
jaeger_cassandra_attempts_total{table="service_operation_index"} 0
jaeger_cassandra_attempts_total{table="tag_index"} 0
jaeger_cassandra_attempts_total{table="traces"} 0