Skip to content

BFD-4761: Replace CW log metric filters with custom Micrometer metrics - #3164

Merged
aschey-forpeople merged 6 commits into
masterfrom
BFD-4761
Jun 18, 2026
Merged

BFD-4761: Replace CW log metric filters with custom Micrometer metrics#3164
aschey-forpeople merged 6 commits into
masterfrom
BFD-4761

Conversation

@mel1-G

@mel1-G mel1-G commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

JIRA Ticket:
BFD-4761

What Does This PR Do?

Some context: If we decide to move our metrics to DataDog, we won't be able to transfer/replicate our log metric filters since we can't push up logs. Hence:

  • Removed all CW log metric filters (request counts + latency & response status codes 4xx + 5xx) and replaced them with custom micrometer metrics
  • Consolidated more of the metrics collection. See RequestTelemetryLogger & MetricRecorder
  • Fixed a bug that Austin caught. The metric application.eob.handler.samhsa_filter wasn't actually measuring the time that the SAMHSA filtering takes since I had not included the actual execution, just the stream 😔

What Should Reviewers Watch For?

If you're reviewing this PR, please check for these things in particular:

What Security Implications Does This PR Have?

Please indicate if this PR does any of the following:

  • Adds any new software dependencies

  • Modifies any security controls

  • Adds new transmission or storage of data

  • Any other changes that could possibly affect security?

  • I have considered the above security implications as it relates to this PR. (If one or more of the above apply, it cannot be merged without the ISSO or team security engineer's (@sb-benohe) approval.)

  • I have created tests to sufficiently ensure the reliability of my code, if applicable. If this is a modification to an existing piece of code, I have audited the associated tests to ensure everything works as expected.

Validation

Have you fully verified and tested these changes? Is the acceptance criteria met? Please provide reproducible testing instructions, code snippets, or screenshots as applicable.

Applied to test and verified that the log metric filters are gone and the dashboard is able to pull in the new custom metrics

@mel1-G
mel1-G marked this pull request as ready for review June 9, 2026 18:01
Comment thread apps/bfd-server-ng/src/main/java/gov/cms/bfd/server/ng/eob/EobHandler.java Outdated
Comment thread ops/services/05-server-ng-metrics/templates/test.json.tftpl Outdated
@bfd-sast

bfd-sast Bot commented Jun 11, 2026

Copy link
Copy Markdown

@aschey-forpeople
aschey-forpeople added this pull request to the merge queue Jun 18, 2026
Merged via the queue into master with commit 249309c Jun 18, 2026
9 checks passed
@aschey-forpeople
aschey-forpeople deleted the BFD-4761 branch June 18, 2026 20:30
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