Add OpenTelemetry trace-log correlation gates#1697
Open
yanziwei wants to merge 1 commit into
Open
Conversation
1 task
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Skill Improvement ($50-150 Bounty)
Skill
skills/secops/log-analysis/SKILL.mdCloses #1696.
What Was Wrong
log-analysishad general cross-source correlation guidance, but it did not require evidence for OpenTelemetry trace-log joins. In application/API investigations, analysts can overstate cross-service confidence when logs only have ad hoc request IDs, traces are sampled away, resource attributes disagree, or vendor log fields are not mapped to OpenTelemetryTraceId/SpanIdsemantics.This is separate from telemetry integrity / ingestion-loss work: this PR focuses on observability correlation fields and trace-context evidence, not collector health.
What This PR Fixes
Step 7.1: OpenTelemetry Trace-Log Correlation Evidence.TraceId,SpanId,TraceFlags, vendor field mapping, resource context, instrumentation scope, sampling policy, missing-span expectation, semantic attributes, and join confidence.request_id/correlation_idvalues,SpanIdwithoutTraceId, sampled traces, resource-context mismatches, non-OTLP field mapping, and missing semantic attributes.OpenTelemetry Trace-Log Correlationoutput table.Test Cases
request_id: report should treat this as local correlation only unless mapped to trace context.SpanIdbut noTraceId: join confidence should be Low or Not Evaluable.traceparentorx-b3-traceid: reviewer should document the mapping before claiming OpenTelemetry correlation.Validation
git diff --checkskills/secops/log-analysis/SKILL.md.OpenTelemetry Trace-Log Correlation Evidence,TraceId,SpanId,TraceFlags,OpenTelemetry Trace-Log Correlation, andAssuming Request IDs Prove Trace-Log Correlation.Bounty Tier
Moderate ($100) - adds focused evidence gates that reduce false correlation confidence for modern application observability investigations.
Bounty Info
1005150221@qq.com