diff --git a/pkg/stanza/fileconsumer/design/images/case-1.png b/pkg/stanza/fileconsumer/design/images/case-1.png new file mode 100644 index 000000000000..c5f70bd8c20b Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/case-1.png differ diff --git a/pkg/stanza/fileconsumer/design/images/case-2.png b/pkg/stanza/fileconsumer/design/images/case-2.png new file mode 100644 index 000000000000..7c250799db1c Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/case-2.png differ diff --git a/pkg/stanza/fileconsumer/design/images/case-3.png b/pkg/stanza/fileconsumer/design/images/case-3.png new file mode 100644 index 000000000000..e6391009008a Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/case-3.png differ diff --git a/pkg/stanza/fileconsumer/design/images/case-4.png b/pkg/stanza/fileconsumer/design/images/case-4.png new file mode 100644 index 000000000000..f327ec038f94 Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/case-4.png differ diff --git a/pkg/stanza/fileconsumer/design/images/grown-1.png b/pkg/stanza/fileconsumer/design/images/grown-1.png new file mode 100644 index 000000000000..ad50ebd6b410 Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/grown-1.png differ diff --git a/pkg/stanza/fileconsumer/design/images/on-disk.png b/pkg/stanza/fileconsumer/design/images/on-disk.png new file mode 100644 index 000000000000..e2b02ced60fb Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/on-disk.png differ diff --git a/pkg/stanza/fileconsumer/design/images/read-1.png b/pkg/stanza/fileconsumer/design/images/read-1.png new file mode 100644 index 000000000000..621c23b4f730 Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/read-1.png differ diff --git a/pkg/stanza/fileconsumer/design/images/read-2.png b/pkg/stanza/fileconsumer/design/images/read-2.png new file mode 100644 index 000000000000..ae801964b944 Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/read-2.png differ diff --git a/pkg/stanza/fileconsumer/design/images/write.png b/pkg/stanza/fileconsumer/design/images/write.png new file mode 100644 index 000000000000..82267f281af9 Binary files /dev/null and b/pkg/stanza/fileconsumer/design/images/write.png differ diff --git a/processor/redactionprocessor/processor.go b/processor/redactionprocessor/processor.go index f2aecf84b286..071501b500db 100644 --- a/processor/redactionprocessor/processor.go +++ b/processor/redactionprocessor/processor.go @@ -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) {