-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
AWSEMFExporter - Adding SummaryDataType, Remove MinMax from Histogram #1564
Closed
shaochengwang
wants to merge
22
commits into
open-telemetry:master
from
shaochengwang:add_summarydatatype_pr
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
7da8b0f
Adding SummaryDataType, Remove MinMax from Histogram
shaochengwang 9de5124
Not adding IntHistogram in this revision
shaochengwang cb4270e
Format the comments, replace tabs with spaces
shaochengwang 0217d55
[awsemfexporter] Implement metric filtering and dimension setting (#1…
kohrapha b01cc16
Trace ID aware load-balancing exporter - 4/4 (#1542)
jpkrohling ed8eca5
Bump github.com/aws/aws-sdk-go in /internal/awsxray/testdata/sampleap…
dependabot[bot] 14fcef3
Bump github.com/prometheus/common in /receiver/simpleprometheusreceiv…
dependabot[bot] 84a94fc
Bump github.com/aliyun/aliyun-log-go-sdk (#1568)
dependabot[bot] 255f46b
Bump github.com/honeycombio/libhoney-go in /exporter/honeycombexporte…
dependabot[bot] c0d37de
Bump github.com/aws/aws-sdk-go in /exporter/awsemfexporter (#1572)
dependabot[bot] 49f8ad0
Bump github.com/google/go-cmp in /exporter/jaegerthrifthttpexporter (…
dependabot[bot] b2e5a3b
Bump github.com/aws/aws-sdk-go in /processor/resourcedetectionprocess…
dependabot[bot] 631c24c
Bump github.com/google/go-cmp in /exporter/sentryexporter (#1581)
dependabot[bot] e344887
Bump github.com/aws/aws-sdk-go in /receiver/awsxrayreceiver (#1578)
dependabot[bot] 18f87ac
Bump github.com/google/go-cmp in /processor/metricstransformprocessor…
dependabot[bot] fd04869
Bump github.com/aws/aws-sdk-go in /exporter/datadogexporter (#1575)
dependabot[bot] 74c0de5
Bump github.com/prometheus/common in /receiver/prometheusexecreceiver…
dependabot[bot] 0dbce50
Bump github.com/observiq/stanza in /receiver/stanzareceiver (#1573)
dependabot[bot] 1571b78
Bump github.com/aws/aws-sdk-go in /exporter/awsxrayexporter (#1577)
dependabot[bot] 31501b2
Bump github.com/google/go-cmp in /exporter/honeycombexporter (#1570)
dependabot[bot] 56ee8c8
Fix version for carbonexporter, avoid dependabot upgrades like #1517 …
bogdandrutu 497524c
Enable windows perf counters receiver (#1539)
james-bebbington File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Not adding IntHistogram in this revision
- Loading branch information
commit 9de5124be6d94dbc6c7b17ddd385d4c17c322430
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ type CWMetricStats struct { | |
// - pdata.DoubleDataPointSlice | ||
// - pdata.IntHistogramDataPointSlice | ||
// - pdata.DoubleHistogramDataPointSlice | ||
// - pdata.DoubleSummaryDataPointSlice | ||
type DataPoints interface { | ||
Len() int | ||
At(int) DataPoint | ||
|
@@ -92,6 +93,7 @@ type DataPoints interface { | |
// - pdata.DoubleDataPoint | ||
// - pdata.IntHistogramDataPoint | ||
// - pdata.DoubleHistogramDataPoint | ||
// - pdata.DoubleSummaryDataPointSlice | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
type DataPoint interface { | ||
IsNil() bool | ||
LabelsMap() pdata.StringMap | ||
|
@@ -104,9 +106,6 @@ type IntDataPointSlice struct { | |
type DoubleDataPointSlice struct { | ||
pdata.DoubleDataPointSlice | ||
} | ||
type IntHistogramDataPointSlice struct { | ||
pdata.IntHistogramDataPointSlice | ||
} | ||
type DoubleHistogramDataPointSlice struct { | ||
pdata.DoubleHistogramDataPointSlice | ||
} | ||
|
@@ -120,9 +119,6 @@ func (dps IntDataPointSlice) At(i int) DataPoint { | |
func (dps DoubleDataPointSlice) At(i int) DataPoint { | ||
return dps.DoubleDataPointSlice.At(i) | ||
} | ||
func (dps IntHistogramDataPointSlice) At(i int) DataPoint { | ||
return dps.IntHistogramDataPointSlice.At(i) | ||
} | ||
func (dps DoubleHistogramDataPointSlice) At(i int) DataPoint { | ||
return dps.DoubleHistogramDataPointSlice.At(i) | ||
} | ||
|
@@ -230,8 +226,6 @@ func getCWMetrics(metric *pdata.Metric, namespace string, instrumentationLibName | |
dps = IntDataPointSlice{metric.IntSum().DataPoints()} | ||
case pdata.MetricDataTypeDoubleSum: | ||
dps = DoubleDataPointSlice{metric.DoubleSum().DataPoints()} | ||
case pdata.MetricDataTypeIntHistogram: | ||
dps = IntHistogramDataPointSlice{metric.IntHistogram().DataPoints()} | ||
case pdata.MetricDataTypeDoubleHistogram: | ||
dps = DoubleHistogramDataPointSlice{metric.DoubleHistogram().DataPoints()} | ||
case pdata.MetricDataTypeDoubleSummary: | ||
|
@@ -290,11 +284,6 @@ func buildCWMetric(dp DataPoint, pmd *pdata.Metric, namespace string, metricSlic | |
if needsCalculateRate(pmd) { | ||
metricVal = calculateRate(fields, metric.Value(), timestamp) | ||
} | ||
case pdata.IntHistogramDataPoint: | ||
metricVal = &CWMetricStats{ | ||
Count: metric.Count(), | ||
Sum: float64(metric.Sum()), | ||
} | ||
case pdata.DoubleHistogramDataPoint: | ||
metricVal = &CWMetricStats{ | ||
Count: metric.Count(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Align with previous comment?
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.
Sure. Didn't see this in the IDE. I will replace all tabs with spaces :)