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

SFx exporter: add cpu delta translations #954

Merged
merged 5 commits into from
Sep 11, 2020
Merged

SFx exporter: add cpu delta translations #954

merged 5 commits into from
Sep 11, 2020

Conversation

pmcollins
Copy link
Member

No description provided.

@project-bot project-bot bot added this to In progress in Collector Sep 4, 2020
@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #954 into master will increase coverage by 13.77%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #954       +/-   ##
===========================================
+ Coverage   74.88%   88.66%   +13.77%     
===========================================
  Files          21      245      +224     
  Lines        1071    13187    +12116     
===========================================
+ Hits          802    11692    +10890     
- Misses        213     1139      +926     
- Partials       56      356      +300     
Flag Coverage Δ
#integration 74.88% <ø> (ø)
#unit 87.88% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...r/signalfxexporter/translation/delta_translator.go 96.15% <100.00%> (ø)
...eiver/awsxrayreceiver/internal/translator/cause.go 100.00% <0.00%> (ø)
receiver/k8sclusterreceiver/utils/maps.go 100.00% <0.00%> (ø)
receiver/k8sclusterreceiver/collection/jobs.go 95.23% <0.00%> (ø)
...r/metricstransformprocessor/operation_add_label.go 100.00% <0.00%> (ø)
exporter/sapmexporter/config.go 100.00% <0.00%> (ø)
exporter/kinesisexporter/factory.go 44.89% <0.00%> (ø)
receiver/receivercreator/factory.go 70.58% <0.00%> (ø)
extension/observer/hostobserver/factory.go 100.00% <0.00%> (ø)
receiver/k8sclusterreceiver/collection/replica.go 100.00% <0.00%> (ø)
... and 227 more

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 d8d4ee8...0efe4b0. Read the comment docs.

@pmcollins pmcollins marked this pull request as ready for review September 9, 2020 16:13
@pmcollins pmcollins requested a review from a team as a code owner September 9, 2020 16:13
@pmcollins pmcollins changed the title SFx exporter: add cpu delta translation SFx exporter: add cpu delta translations Sep 9, 2020
Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove k8s.node.cpu.utilization: cpu.utilization mapping from translations

@pmcollins
Copy link
Member Author

please remove k8s.node.cpu.utilization: cpu.utilization mapping from translations

Done.

Collector automation moved this from In progress to Reviewer approved Sep 10, 2020
@tigrannajaryan tigrannajaryan merged commit ebb4bb4 into open-telemetry:master Sep 11, 2020
Collector automation moved this from Reviewer approved to Done Sep 11, 2020
@dmitryax dmitryax mentioned this pull request Sep 14, 2020
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
Fixes open-telemetry/opentelemetry-collector#954

#954 is being caused from the conversion of OC -> Internal -> OC span types. 

OC technically allows nil times because its a pointer, but [docs state](https://github.com/census-instrumentation/opencensus-proto/blob/master/src/opencensus/proto/trace/v1/trace.proto#L125-L135)

```go
// This field is semantically required. When not set on receive -
// receiver should set it to the value of end_time field if it was
// set. Or to the current time if neither was set. It is important to
// keep end_time > start_time for consistency.
//
// This field is required.
StartTime *timestamp.Timestamp
```

So this pr changes the zipkin receiver to set the start/end timestamps if they're not set on receive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants