ConfigProperties Javadoc does not match getDuration and getMap behavior
Maintainer thường phản hồi trong vòng 2 ngày
Một pull request liên quan đã được merge.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 94/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu trong sdk-extensions/autoconfigure-spi tại ConfigProperties.java và xem lại Javadoc cho ba phương thức được nêu tên. So sánh hành vi được mô tả với DefaultConfigProperties.getDuration và các assertion trong ConfigPropertiesTest. Hoàn thành khi Javadoc mô tả chính xác các lỗi, các đơn vị được hỗ trợ và các giá trị trả về mà không thay đổi hành vi hoặc chữ ký.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
The Javadoc of the stable ConfigProperties SPI does not match how the default implementation behaves:
getDuration(String)says it returnsnullif the property "has a wrong type". Its own@throwssays malformed values throw, andDefaultConfigProperties.getDurationthrowsConfigurationExceptionfor a bad number or unit (asserted inConfigPropertiesTest). A custom implementation that follows the first sentence would silently fall back to defaults.- The
getDuration(String)unit list omitsnsandus, whichDefaultConfigPropertiesaccepts. - The
@returnofgetDuration(String, Duration)andgetMap(String, Map)says "a Double-valued configuration property", copied fromgetDouble(String, double).
Describe the solution you'd like
Correct the three points above in ConfigProperties.java. Javadoc only; no behavior or signature change.
Describe alternatives you've considered
N/A
Spec alignment
N/A — Java SPI documentation only.
Additional context
- Affected module:
:sdk-extensions:autoconfigure-spi - Artifact stability: stable
- Backward compatible: yes
- Ngôn ngữ chính
- Java
- Star
- 2.5k
- Fork
- 1k
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 52
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của open-telemetry/opentelemetry-java
-
PrometheusComponentProvider promotes all resource attributes when resource_constant_labels is empty ({})Có thể đã có người làm @rooks-ns đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-telemetry/opentelemetry-java#9014 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
MetricReusableDataMarshaler passes MetricData count instead of data point count to otel.sdk.exporter.metric_data_point.{inflight,exported}Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
open-telemetry/opentelemetry-java#9011 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Fix `otel.sdk.log.created` counting semanticsCó thể đã có người làm @anuraaga đã nhận 94 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
open-telemetry/opentelemetry-java#8688 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
open-telemetry/opentelemetry-java#9013 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Span/log processors and PeriodicMetricReader use static ComponentId, causing all instances to share otel.component.name "<type>/0"Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
open-telemetry/opentelemetry-java#9012 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của open-telemetry/opentelemetry-java
Issue tương tự
-
Marketplace time-zone issueĐang mởbug main ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openhab/openhab-webui#4671 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
NearVanilla/IceCream#109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
getRawTextContent() returns the lines of every page in reverse order (bottom to top) since 4.0.3Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
bancolombia/bin-stash#79 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày