-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: debug issue with specific email
- Loading branch information
1 parent
a9b7c29
commit c76d27a
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,6 +196,11 @@ func newStructuredSpanV3(bucketStart uint64, fingerprint string, otelSpan ptrace | |
|
||
}) | ||
|
||
// debugging purpose | ||
if v, ok := attrMap.StringMap["task.user_email"]; ok && v == "[email protected]" { | ||
zap.S().Error("found trace for task.user_email", zap.String("task.user_email", v), zap.String("traceID", otelSpan.TraceID().String()), zap.String("spanID", otelSpan.SpanID().String())) | ||
} | ||
|
||
resource.Attributes().Range(func(k string, v pcommon.Value) bool { | ||
if v.Type() == pcommon.ValueTypeMap { | ||
result := flatten.FlattenJSON(v.Map().AsRaw(), k) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters