[Bug] OTEL push method is stored as a database method
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start with buildPropertiesFromGrpc() in pkg/util/parse and trace the OTEL branch alongside the HTTP and MQTT branches. Run go test -mod=mod ./pkg/util/parse and use the focused regression test to verify that an OTEL property sets PushMethod.MethodName to common.PushMethodOTEL and is initialized by the OTEL handler.
Written by the indexing model from the issue text.
Description
What happened:
buildPropertiesFromGrpc() assigns the OTEL push method constant to DBMethodName instead of PushMethod.MethodName. The generated mapper therefore does not recognize the property as an OTEL push method.
What you expected to happen:
A device property configured with an OTEL push method should produce PushMethod.MethodName == common.PushMethodOTEL and be initialized by the OTEL handler.
How to reproduce it:
- Build a DMI device with one property whose
PushMethod.Otelis set. - Pass the device to
buildPropertiesFromGrpc(). - Inspect the resulting
DeviceProperty.PushMethod. - The current code leaves
MethodNameempty and writesotelintoDBMethodNameinstead.
Proposed fix:
Store common.PushMethodOTEL in pushMethodName, matching the HTTP and MQTT branches. A focused regression test covers the parser output.
Validation:
go test -mod=mod ./pkg/util/parse passes with the repository API dependency on macOS.
- Dominant language
- Go
- Stars
- 6
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100