[AutoInstrumentation] NodeJS histogram buckets should be configurable #3436
Description
Component(s)
auto-instrumentation
What happened?
Description
When injecting autoinstrumentation on nodejs apps, we use the default histogram buckets: [ 0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000 ]
While it makes sense for values expressed in ms
, it does not work with metrics such as http_server_duration_bucket
expressed in seconds
.
It seems other SDKs face(d) the same issue:
I would expect to be able to configure the bucket list for metrics to adjust to the currently used unit, ideally through the Instrumentation
CRD. As I understand it, we could, for example, pass a view to the created NodeSDK
While this is not an issue for span metrics or service-graph metrics (buckets can be configured downstream), it makes other metrics like http_server_duration_bucket
unusable.
Kubernetes Version
1.30
Operator version
0.111.0
Collector version
0.111.0
Environment information
No response
Log output
No response
Additional context
No response