Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make dist tracing disabled by default temporarily #172

Merged
merged 3 commits into from
Aug 5, 2024
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions aggregator/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,13 @@ func (a *Aggregator) processEbpf(ctx context.Context) {
ctxPid := context.WithValue(a.ctx, log.LOG_CONTEXT, fmt.Sprint(d.Pid))
go a.signalTlsAttachment(d.Pid)
a.processL7(ctxPid, d)
case l7_req.TRACE_EVENT:
d := data.(*l7_req.TraceEvent)
rateLimiter := a.getRateLimiterForPid(d.Pid)
if rateLimiter.Allow() {
a.ds.PersistTraceEvent(d)
}
// dist tracing disabled by default temporarily
// case l7_req.TRACE_EVENT:
// d := data.(*l7_req.TraceEvent)
// rateLimiter := a.getRateLimiterForPid(d.Pid)
// if rateLimiter.Allow() {
// a.ds.PersistTraceEvent(d)
// }
}
}
}
Expand Down Expand Up @@ -1050,8 +1051,9 @@ func (a *Aggregator) processKafkaEvent(ctx context.Context, d *l7_req.L7Event) {
Key: msg.Key,
Value: msg.Value,
Type: msg.Type,
Tid: d.Tid,
Seq: d.Seq,
// dist tracing disabled by default temporarily
// Tid: d.Tid,
// Seq: d.Seq,
}

err := a.setFromToV2(addrPair, d, event, "")
Expand Down Expand Up @@ -1084,8 +1086,9 @@ func (a *Aggregator) processAmqpEvent(ctx context.Context, d *l7_req.L7Event) {
FailReason: "",
Method: d.Method,
Path: "",
Tid: d.Tid,
Seq: d.Seq,
// dist tracing disabled by default temporarily
// Tid: d.Tid,
// Seq: d.Seq,
}

err := a.setFromToV2(addrPair, d, reqDto, "")
Expand Down Expand Up @@ -1124,8 +1127,9 @@ func (a *Aggregator) processRedisEvent(ctx context.Context, d *l7_req.L7Event) {
FailReason: "",
Method: d.Method,
Path: query,
Tid: d.Tid,
Seq: d.Seq,
// dist tracing disabled by default temporarily
// Tid: d.Tid,
// Seq: d.Seq,
}

err := a.setFromToV2(addrPair, d, reqDto, "")
Expand Down Expand Up @@ -1216,8 +1220,9 @@ func (a *Aggregator) processHttpEvent(ctx context.Context, d *l7_req.L7Event) {
FailReason: "",
Method: d.Method,
Path: path,
Tid: d.Tid,
Seq: d.Seq,
// dist tracing disabled by default temporarily
// Tid: d.Tid,
// Seq: d.Seq,
}

err := a.setFromToV2(addrPair, d, reqDto, reqHostHeader)
Expand Down Expand Up @@ -1256,8 +1261,9 @@ func (a *Aggregator) processMySQLEvent(ctx context.Context, d *l7_req.L7Event) {
FailReason: "",
Method: d.Method,
Path: query,
Tid: d.Tid,
Seq: d.Seq,
// dist tracing disabled by default temporarily
// Tid: d.Tid,
// Seq: d.Seq,
}

err = a.setFromToV2(addrPair, d, reqDto, "")
Expand Down Expand Up @@ -1297,8 +1303,9 @@ func (a *Aggregator) processPostgresEvent(ctx context.Context, d *l7_req.L7Event
FailReason: "",
Method: d.Method,
Path: query,
Tid: d.Tid,
Seq: d.Seq,
// dist tracing disabled by default temporarily
// Tid: d.Tid,
// Seq: d.Seq,
}

err = a.setFromToV2(addrPair, d, reqDto, "")
Expand Down
Loading