Skip to content

add http headers to spans#99

Draft
NimrodAvni78 wants to merge 3 commits intomainfrom
nimrodavni78/http-headers
Draft

add http headers to spans#99
NimrodAvni78 wants to merge 3 commits intomainfrom
nimrodavni78/http-headers

Conversation

@NimrodAvni78
Copy link

@NimrodAvni78 NimrodAvni78 commented Feb 26, 2026

Checklist

Allow for extracting HTTP headers into spans by set of rules, inspired structure by config-v2 structure

example:

ebpf:
  payload_extraction:
    http:
      generic:
        enabled: false
        policy:
          # exclude by default unless matched by an include or obfuscate rule.
          default_action: exclude
          # First matching rule decides outcome.
          match_order: first_match_wins
          # Obfuscate String to use on action: obfuscate
          obfuscation_string: "***"
        # Ordered include/exclude/obfuscate rules.
        rules:
          - action: obfuscate
            name: obfuscate-auth
            description: Obfuscate all autherization and token headers
            scope: request
            type: headers
            match:
              case_sensetive: false
              regex:
                - ".*auth.*"
                - ".*credential.*"
                - ".*cookie.*"
                - ".*token.*"
                - ".*api(\-?)key.*"
          - action: include
            name: include-coralogix-headers
            description: include all coralogix headers
            scope: both
            type: headers
            match:
              case_sensetive: false
              regex:
                - ".*cx.*"
                - ".*cgx.*"
                - ".*coralogix.*"

…ders

# Conflicts:
#	pkg/config/payload_extraction.go
#	pkg/ebpf/common/http_transform.go
#	pkg/export/otel/traces_test.go
#	pkg/export/otel/tracesgen/tracesgen.go
#	pkg/obi/config.go
@NimrodAvni78 NimrodAvni78 force-pushed the nimrodavni78/http-headers branch from 5f0c2cc to 86e203f Compare February 26, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant