Skip to content

v0.6.0

Choose a tag to compare

@mpyw mpyw released this 21 Dec 00:06
· 58 commits to main since this release
081a145

Breaking Changes

This release restructures the configuration format. See the migration guide below.

Config Structure Changes

  • patterns → packages.patterns
  • exclude_regexps → packages.regexps.omit
  • New: packages.regexps.only for whitelist filtering
  • New: functions section for function-level filtering

Before (v0.5.x)

template: "defer trace({{.Ctx}})"
patterns:
  - ./...
exclude_regexps:
  - /mock/

After (v0.6.0)

template: "defer trace({{.Ctx}})"
packages:
  patterns:
    - ./...
  regexps:
    omit:
      - /mock/

New Features

Function Filtering

Filter functions by type, scope, and regex patterns:

functions:
  types: [function, method]      # Filter by function type
  scopes: [exported, unexported] # Filter by visibility
  regexps:
    only: [^Handle]              # Whitelist by name
    omit: [Mock, Helper$]        # Blacklist by name

Carriers Configuration

New extended form to disable default carriers:

# Simple form (default carriers enabled)
carriers:
  - package: github.com/example/custom
    type: Context

# Extended form (disable defaults)
carriers:
  custom:
    - package: github.com/example/custom
      type: Context
  default: false

Package Regex Whitelisting

New packages.regexps.only for whitelist filtering:

packages:
  regexps:
    only:
      - /handler/
      - /service/

Migration from v0.5.x

  1. Move patterns under packages.patterns
  2. Move exclude_regexps to packages.regexps.omit
  3. (Optional) Use new filtering features

Full Changelog: v0.5.0...v0.6.0