Skip to content

Add instrumentation for fs.glob for node 22+ #2336

@bizob2828

Description

@bizob2828

Description

In #2304 I identified a useful method to add to our fs instrumentation. We purposely avoid instrumenting the sync methods because they are used in tight loops in other parts of core and frameworks so you’d get a pile of overhead and thousands of segment you don’t want (could potentially merge them but overhead maybe not worth it)

Acceptance Criteria

Add instrumentation for fs.glob in Node 22+

Design Consideration/Limitations

Why is this the route we should take to achieve our goal?
What can't be achieved within this story?

Dependencies

Do any other teams or parts of the New Relic product need to be considered?
Some common areas: UI, collector, documentation

Additional context

We need to add an integration test for this new method. Looking at the tests we could reduce a lot of boiler plate too, but up to the dev that takes this on

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done: Issues recently completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions