Skip to content

Bedrock Token Counting#1752

Merged
TimPansino merged 7 commits into
mainfrom
feat-bedrock-token-counting
Jun 17, 2026
Merged

Bedrock Token Counting#1752
TimPansino merged 7 commits into
mainfrom
feat-bedrock-token-counting

Conversation

@TimPansino

Copy link
Copy Markdown
Contributor

Overview

  • Add token counting to Bedrock via botocore and aiobotocore for all LLM invocations.

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 9 0 0 1.02s
✅ MARKDOWN markdownlint 7 0 0 0 1.34s
✅ PYTHON ruff 1039 0 0 0 1.11s
✅ PYTHON ruff-format 1039 0 0 0 0.42s
✅ YAML prettier 23 0 0 0 1.61s
✅ YAML v8r 23 0 0 7.62s
✅ YAML yamllint 23 0 0 0.71s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 2, 2026
@TimPansino TimPansino changed the title Feat bedrock token counting Bedrock Token Counting Jun 2, 2026
@codecov-commenter

codecov-commenter commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.40157% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.07%. Comparing base (8e0d575) to head (569283c).

Files with missing lines Patch % Lines
newrelic/hooks/external_botocore.py 87.40% 0 Missing and 16 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1752      +/-   ##
==========================================
- Coverage   82.07%   82.07%   -0.01%     
==========================================
  Files         215      215              
  Lines       26496    26589      +93     
  Branches     4190     4213      +23     
==========================================
+ Hits        21747    21823      +76     
- Misses       3314     3315       +1     
- Partials     1435     1451      +16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 2, 2026
@TimPansino TimPansino force-pushed the feat-bedrock-token-counting branch from 298e5ed to a2212b1 Compare June 11, 2026 17:15
@TimPansino TimPansino marked this pull request as ready for review June 11, 2026 21:12
@TimPansino TimPansino requested a review from a team as a code owner June 11, 2026 21:12
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 15, 2026
@TimPansino TimPansino requested a review from hmstepanek June 16, 2026 17:27
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 16, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 17, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 17, 2026
@TimPansino TimPansino merged commit 9294769 into main Jun 17, 2026
65 checks passed
@TimPansino TimPansino deleted the feat-bedrock-token-counting branch June 17, 2026 22:25
@hmstepanek hmstepanek added this to the v13.2.0 milestone Jul 6, 2026
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.

3 participants