-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(tracemetrics)!: Update types #17907
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
base: develop
Are you sure you want to change the base?
Conversation
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
|
||
return 0; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Unused Functions Cause Compilation Errors
The estimateMetricSizeInBytes
, estimateLogSizeInBytes
, and estimatePrimitiveSizeInBytes
functions seem accidentally committed. They are unused, unrelated to the PR's purpose, and cause compilation errors due to undefined types (Metric
, Log
, Primitive
) and the isPrimitive
function. Furthermore, their array size estimation logic accesses value[0]
without checking for empty arrays and assumes homogeneous element types.
const spanId = span ? span.spanContext().spanId : undefined; | ||
|
||
if (!traceId) { | ||
DEBUG_BUILD && debug.warn('[Metric] No trace ID available, will not send metric.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't do this for logs. When can this ever happen?
Uh oh!
There was an error while loading. Please reload this page.