Skip to content
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

Change structs in otlpgrpc to follow standard go encoding interfaces #5062

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

bogdandrutu
Copy link
Member

  • Change UnmarshalJSON[Traces|Metrics|Logs][Reques|Response] to be a func UnmarshalJSON on the struct.
  • Rename [Traces|Metrics|Logs][Reques|Response].Marshal to MarshalProto consistent with JSON/Text standard interfaces.
  • Change UnmarshalJSON[Traces|Metrics|Logs][Reques|Response] to be a func UnmarshalProto on the struct.

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #5062 (a3473a8) into main (1b76187) will increase coverage by 0.00%.
The diff coverage is 75.00%.

❗ Current head a3473a8 differs from pull request most recent head 7afe523. Consider uploading reports for the commit 7afe523 to get more accurate results

@@           Coverage Diff           @@
##             main    #5062   +/-   ##
=======================================
  Coverage   91.01%   91.02%           
=======================================
  Files         180      180           
  Lines       10814    10826   +12     
=======================================
+ Hits         9842     9854   +12     
- Misses        752      753    +1     
+ Partials      220      219    -1     
Impacted Files Coverage Δ
receiver/otlpreceiver/encoder.go 73.91% <71.42%> (-2.56%) ⬇️
exporter/otlphttpexporter/otlp.go 82.20% <100.00%> (ø)
model/internal/pdata/common.go 94.26% <0.00%> (+0.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b76187...7afe523. Read the comment docs.

* Change `UnmarshalJSON[Traces|Metrics|Logs][Reques|Response]` to be a func `UnmarshalJSON` on the struct.
* Rename `[Traces|Metrics|Logs][Reques|Response].Marshal` to `MarshalProto` consistent with JSON/Text standard interfaces.
* Change `UnmarshalJSON[Traces|Metrics|Logs][Reques|Response]` to be a func `UnmarshalProto` on the struct.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit f54e83e into open-telemetry:main Mar 24, 2022
@bogdandrutu bogdandrutu deleted the encodingintf branch March 24, 2022 08:46
Nicholaswang pushed a commit to Nicholaswang/opentelemetry-collector that referenced this pull request Jun 7, 2022
…pen-telemetry#5062)

* Change `UnmarshalJSON[Traces|Metrics|Logs][Reques|Response]` to be a func `UnmarshalJSON` on the struct.
* Rename `[Traces|Metrics|Logs][Reques|Response].Marshal` to `MarshalProto` consistent with JSON/Text standard interfaces.
* Change `UnmarshalJSON[Traces|Metrics|Logs][Reques|Response]` to be a func `UnmarshalProto` on the struct.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
JimChenWYU pushed a commit to easyops-cn/opentelemetry-collector that referenced this pull request Jun 9, 2023
…ated by prometheus, rather than making our own (open-telemetry#3989)

* Revert "receiver/prometheus: glue and complete staleness marking for disappearing metrics (open-telemetry#3423)"

This reverts commit 8b79380.

* Revert "receiver/prometheus: add store to track stale metrics (open-telemetry#3414)"

This reverts commit cdc1634.

* stop dropping staleness markers from prometheus, and fix tests

* add staleness end to end test from open-telemetry#3423

* fix import grouping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants