Skip to content

Commit

Permalink
images
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Jan 7, 2025
1 parent fc0fd18 commit 0ecb050
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 0 deletions.
Binary file added pkg/stanza/fileconsumer/design/images/case-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/stanza/fileconsumer/design/images/case-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/stanza/fileconsumer/design/images/case-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/stanza/fileconsumer/design/images/grown-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/stanza/fileconsumer/design/images/on-disk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/stanza/fileconsumer/design/images/read-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkg/stanza/fileconsumer/design/images/read-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions processor/redactionprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,21 @@ func (s *redaction) processResourceSpan(ctx context.Context, rs ptrace.ResourceS

// Attributes can also be part of span
s.processAttrs(ctx, spanAttrs)

s.processSpanEvent(ctx, span.Events())
}
}
}

func (s *redaction) processSpanEvent(ctx context.Context, events ptrace.SpanEventSlice) {
for l := 0; l < events.Len(); l++ {
event := events.At(l)
eventAttrs := event.Attributes()
// Attributes can also be part of span event
s.processAttrs(ctx, eventAttrs)
}
}

// processResourceLog processes the log resource and all of its logs and then returns the last
// view metric context. The context can be used for tests
func (s *redaction) processResourceLog(ctx context.Context, rl plog.ResourceLogs) {
Expand Down

0 comments on commit 0ecb050

Please sign in to comment.