Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New instrumentation system #540

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Add first tests, bug fixes

d930443
Select commit
Loading
Failed to load commit list.
Draft

New instrumentation system #540

Add first tests, bug fixes
d930443
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch failed Feb 28, 2025 in 0s

37.63% of diff hit (target 95.18%)

View this Pull Request on Codecov

37.63% of diff hit (target 95.18%)

Annotations

Check warning on line 30 in library/agent/applyHooks.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/applyHooks.ts#L27-L30

Added lines #L27 - L30 were not covered by tests

Check warning on line 36 in library/agent/hooks/BuiltinModule.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/BuiltinModule.ts#L35-L36

Added lines #L35 - L36 were not covered by tests

Check warning on line 76 in library/agent/hooks/VersionedPackage.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/VersionedPackage.ts#L75-L76

Added lines #L75 - L76 were not covered by tests

Check warning on line 17 in library/agent/hooks/instrumentation/builtinShim.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/builtinShim.ts#L15-L17

Added lines #L15 - L17 were not covered by tests

Check warning on line 27 in library/agent/hooks/instrumentation/codeTransformation.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/codeTransformation.ts#L8-L27

Added lines #L8 - L27 were not covered by tests

Check warning on line 6 in library/agent/hooks/instrumentation/getExportsForBuiltin.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/getExportsForBuiltin.ts#L5-L6

Added lines #L5 - L6 were not covered by tests

Check warning on line 13 in library/agent/hooks/instrumentation/getPackageVersionFromPath.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/getPackageVersionFromPath.ts#L4-L13

Added lines #L4 - L13 were not covered by tests

Check warning on line 19 in library/agent/hooks/instrumentation/index.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/index.ts#L6-L19

Added lines #L6 - L19 were not covered by tests

Check warning on line 64 in library/agent/hooks/instrumentation/instructions.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/instructions.ts#L21-L64

Added lines #L21 - L64 were not covered by tests

Check warning on line 112 in library/agent/hooks/instrumentation/instructions.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/instructions.ts#L66-L112

Added lines #L66 - L112 were not covered by tests

Check warning on line 118 in library/agent/hooks/instrumentation/instructions.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/instructions.ts#L114-L118

Added lines #L114 - L118 were not covered by tests

Check warning on line 122 in library/agent/hooks/instrumentation/instructions.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/instructions.ts#L120-L122

Added lines #L120 - L122 were not covered by tests

Check warning on line 134 in library/agent/hooks/instrumentation/instructions.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/instructions.ts#L124-L134

Added lines #L124 - L134 were not covered by tests

Check warning on line 140 in library/agent/hooks/instrumentation/instructions.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/instructions.ts#L136-L140

Added lines #L136 - L140 were not covered by tests

Check warning on line 146 in library/agent/hooks/instrumentation/instructions.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/instructions.ts#L142-L146

Added lines #L142 - L146 were not covered by tests

Check warning on line 52 in library/agent/hooks/instrumentation/loadHook.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/loadHook.ts#L15-L52

Added lines #L15 - L52 were not covered by tests

Check warning on line 121 in library/agent/hooks/instrumentation/loadHook.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/loadHook.ts#L54-L121

Added lines #L54 - L121 were not covered by tests

Check warning on line 161 in library/agent/hooks/instrumentation/loadHook.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/hooks/instrumentation/loadHook.ts#L123-L161

Added lines #L123 - L161 were not covered by tests

Check warning on line 96 in library/agent/protect.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/protect.ts#L90-L96

Added lines #L90 - L96 were not covered by tests

Check warning on line 109 in library/agent/protect.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/protect.ts#L108-L109

Added lines #L108 - L109 were not covered by tests

Check warning on line 157 in library/agent/protect.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/protect.ts#L157

Added line #L157 was not covered by tests

Check warning on line 166 in library/agent/protect.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/protect.ts#L166

Added line #L166 was not covered by tests

Check warning on line 177 in library/agent/protect.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/protect.ts#L177

Added line #L177 was not covered by tests

Check warning on line 192 in library/agent/protect.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/agent/protect.ts#L185-L192

Added lines #L185 - L192 were not covered by tests

Check warning on line 165 in library/sinks/FileSystem.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

library/sinks/FileSystem.ts#L165

Added line #L165 was not covered by tests