-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update pdata comments #14342
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: main
Are you sure you want to change the base?
Update pdata comments #14342
Conversation
When service.telemetry.metrics.level is set to 'none', the collector should skip registering process metrics to avoid errors on platforms where gopsutil is not supported (such as AIX). This change conditionally registers process metrics only when the metrics level is not LevelNone, preventing the 'failed to register process metrics: not implemented yet' error on unsupported platforms. Fixes regression introduced in v0.136.0 where the check for metrics level was removed.
Similar to the resolution for pcommon.Value in previous changes, this update ensures consistent documentation across all pdata types by clarifying that calling functions on zero-initialized instances is invalid usage. Changes: - Updated template files (one_of_field.go, one_of_message_value.go) to generate improved comment wording - Updated pcommon/value.go comments manually - Updated all generated pdata files to use consistent wording: 'is invalid and will cause a panic' instead of 'will cause a panic' This makes it clearer that using zero-initialized instances is not just dangerous but explicitly invalid usage, improving API documentation clarity.
|
@Arunodoy18 please address the CI failures |
| if err := proctelemetry.RegisterProcessMetrics(srv.telemetrySettings); err != nil { | ||
| return nil, fmt.Errorf("failed to register process metrics: %w", err) | ||
| // Only register process metrics if metrics telemetry is enabled | ||
| if telemetryCfg, ok := cfg.Telemetry.(*otelconftelemetry.Config); !ok || telemetryCfg.Metrics.Level != configtelemetry.LevelNone { |
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.
this change is unrelated to the comment change, please remove this from the pr and we can get this merged
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.
Yeah sure , Doing this .
Thank you
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.
Hey, Things are been removed , You can Now check for the unrelated changes for merging.
Thank you
…cenarios This enhancement adds a connection_pool_size configuration option to the OTLP exporter, enabling multiple gRPC connections with round-robin load balancing. Key changes: - Add connection_pool_size config parameter (default: 0, uses 1 connection) - Implement round-robin load balancing across multiple connections - Support for 1-256 concurrent gRPC connections - Backward compatible: default behavior unchanged This resolves performance issues in high-throughput environments (10K+ spans/sec) and high-latency network scenarios where a single gRPC connection becomes a bottleneck. Also fixes unrelated service.go issue per contributor feedback on PR open-telemetry#14342.
|
Can anyone guide me with the Failures. |
|
You need to run |
Description
This PR updates documentation comments across the pdata package to provide consistent and clearer messaging about invalid usage of zero-initialized instances, similar to what was done for pcommon.Value in previous changes.
Changes
Before vs After
Before: