Skip to content

feat: context propagation and operation type attributes#6

Merged
LucasAlvesSoares merged 14 commits into
mainfrom
context-overlay-propagation
Mar 23, 2026
Merged

feat: context propagation and operation type attributes#6
LucasAlvesSoares merged 14 commits into
mainfrom
context-overlay-propagation

Conversation

@LucasAlvesSoares

Copy link
Copy Markdown
Contributor

Description

Reframes the telemetry mental model around autoinstrumentation as the primary layer, with custom spans adding business context via a parent span rather than wrapping LLM calls directly. Adds propagate parameter in context overlays for attribute propagation as opt-in

Type of Change

Please check the relevant option:

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • Dependency update

How to Test

Describe how reviewers can test your changes:

  1. Instrument an agent using auto_instrument
  2. Nest context_overlays with propagate=True
  3. Watch attributes be propagated in traces
  4. Watch operation name be included in traces

Checklist

Before submitting your PR, please review and check the following:

  • I have read the Contributing Guidelines
  • I have verified that my changes solve the issue
  • I have added/updated automated tests to cover my changes
  • All tests pass locally
  • I have verified that my code follows the Code Guidelines
  • I have updated documentation (if applicable)
  • I have added type hints for all public APIs
  • My code does not contain sensitive information (credentials, tokens, etc.)
  • I have followed Conventional Commits for commit messages

@jeanscherf jeanscherf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LucasAlvesSoares LucasAlvesSoares merged commit b3971f0 into main Mar 23, 2026
9 checks passed
@LucasAlvesSoares LucasAlvesSoares deleted the context-overlay-propagation branch March 23, 2026 19:00
tiagoek added a commit that referenced this pull request Jul 7, 2026
…uto-detect

Three new FP classes discovered in the post-remediation dry-run (85 real Python
PRs, 10 Java PRs). Empirical validation showed the initial fix wave left
gaps that produced 1000+ noise findings on subsequent PRs.

- FP-H-01: HC-01 no longer scans lockfiles (uv.lock, poetry.lock, Pipfile.lock,
  package-lock.json, yarn.lock, Cargo.lock, Gemfile.lock, *.lock). These are
  generated files full of package registry URLs. Impact: eliminates ~800
  false BLOCKs on PRs that touch uv.lock.

- FP-I-01: HC-01 no longer scans .env / .env.* / .env_* / .env-* files.
  These are convention/template files carrying placeholder URLs like
  'your-api-url-here'. Impact: eliminates ~14 false BLOCKs.

- FP-J-01: check-license-spdx auto-detects whether the repo has consistent
  SPDX adoption. If < 20% of existing files carry SPDX headers, LIC-01/02
  is held (returns PASS with a pass_criteria_met explanation) rather than
  penalizing every new file for a debt the repo itself carries. Impact:
  eliminates 12 false BLOCKs on cloud-sdk-java PR #6 (Number Range module).

Regression tests: +5 bats tests in test_fp_remediation.bats (76 total, all
green in both repos).
tiagoek added a commit that referenced this pull request Jul 7, 2026
…uto-detect

Three new FP classes discovered in the post-remediation dry-run (85 real Python
PRs, 10 Java PRs). Empirical validation showed the initial fix wave left
gaps that produced 1000+ noise findings on subsequent PRs.

- FP-H-01: HC-01 no longer scans lockfiles (uv.lock, poetry.lock, Pipfile.lock,
  package-lock.json, yarn.lock, Cargo.lock, Gemfile.lock, *.lock). These are
  generated files full of package registry URLs. Impact: eliminates ~800
  false BLOCKs on PRs that touch uv.lock.

- FP-I-01: HC-01 no longer scans .env / .env.* / .env_* / .env-* files.
  These are convention/template files carrying placeholder URLs like
  'your-api-url-here'. Impact: eliminates ~14 false BLOCKs.

- FP-J-01: check-license-spdx auto-detects whether the repo has consistent
  SPDX adoption. If < 20% of existing files carry SPDX headers, LIC-01/02
  is held (returns PASS with a pass_criteria_met explanation) rather than
  penalizing every new file for a debt the repo itself carries. Impact:
  eliminates 12 false BLOCKs on cloud-sdk-java PR #6 (Number Range module).

Regression tests: +5 bats tests in test_fp_remediation.bats (76 total, all
green in both repos).
tiagoek added a commit that referenced this pull request Jul 7, 2026
…uto-detect

Three new FP classes discovered in the post-remediation dry-run (85 real Python
PRs, 10 Java PRs). Empirical validation showed the initial fix wave left
gaps that produced 1000+ noise findings on subsequent PRs.

- FP-H-01: HC-01 no longer scans lockfiles (uv.lock, poetry.lock, Pipfile.lock,
  package-lock.json, yarn.lock, Cargo.lock, Gemfile.lock, *.lock). These are
  generated files full of package registry URLs. Impact: eliminates ~800
  false BLOCKs on PRs that touch uv.lock.

- FP-I-01: HC-01 no longer scans .env / .env.* / .env_* / .env-* files.
  These are convention/template files carrying placeholder URLs like
  'your-api-url-here'. Impact: eliminates ~14 false BLOCKs.

- FP-J-01: check-license-spdx auto-detects whether the repo has consistent
  SPDX adoption. If < 20% of existing files carry SPDX headers, LIC-01/02
  is held (returns PASS with a pass_criteria_met explanation) rather than
  penalizing every new file for a debt the repo itself carries. Impact:
  eliminates 12 false BLOCKs on cloud-sdk-java PR #6 (Number Range module).

Regression tests: +5 bats tests in test_fp_remediation.bats (76 total, all
green in both repos).
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.

4 participants